Skip to content

Commit

Permalink
Merge pull request #1 from bgetting/patch-1
Browse files Browse the repository at this point in the history
Use correct URL for database resource.
  • Loading branch information
Jason Rust committed May 16, 2012
2 parents 28212f2 + 4e3cc71 commit b858393
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/emaildirect/database.rb
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit b858393

Please sign in to comment.