lib/maestrano/api/operation/create.rb in maestrano-0.3.0 vs lib/maestrano/api/operation/create.rb in maestrano-0.4.0
- old
+ new
@@ -1,12 +1,12 @@
module Maestrano
module API
module Operation
module Create
module ClassMethods
- def create(params={}, api_key=nil)
- response, api_key = Maestrano::API::Operation::Base.request(:post, self.url, api_key, params)
- Util.convert_to_maestrano_object(response, api_key)
+ def create(params={}, api_token=nil)
+ response, api_token = Maestrano::API::Operation::Base.request(:post, self.url, api_token, params)
+ Util.convert_to_maestrano_object(response, api_token)
end
end
def self.included(base)
base.extend(ClassMethods)