Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1 from bgetting/patch-1

Use correct URL for database resource.
  • Loading branch information...
commit b85839301d28e649c00a80bd47bdf3f913937b5c 2 parents 28212f2 + 4e3cc71
@jrust jrust authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/emaildirect/database.rb
View
6 lib/emaildirect/database.rb
@@ -6,13 +6,13 @@ module EmailDirect
class Database
class << self
def all
- response = EmailDirect.get '/Databases'
+ response = EmailDirect.get '/Database'
Hashie::Mash.new(response)
end
def create(name, options = {})
options.merge! :ColumnName => name
- response = EmailDirect.post '/Databases', :body => options.to_json
+ response = EmailDirect.post '/Database', :body => options.to_json
Hashie::Mash.new(response)
end
end
@@ -24,7 +24,7 @@ def initialize(column_name)
end
def details
- response = EmailDirect.get "/Databases/#{column_name}"
+ response = EmailDirect.get "/Database/#{column_name}"
Hashie::Mash.new(response)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.