lib/emaildirect/database.rb in emaildirect-1.3.1 vs lib/emaildirect/database.rb in emaildirect-1.3.2

- old
+ new

@@ -4,17 +4,17 @@ module EmailDirect # Represents a database and associated functionality 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 attr_reader :column_name @@ -22,10 +22,10 @@ def initialize(column_name) @column_name = column_name end def details - response = EmailDirect.get "/Databases/#{column_name}" + response = EmailDirect.get "/Database/#{column_name}" Hashie::Mash.new(response) end end end