Module: Besepa::ApiCalls::Create::ClassMethods
- Defined in:
- lib/besepa/api_calls/create.rb
Instance Method Summary collapse
Instance Method Details
#create(params, filters = {}) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/besepa/api_calls/create.rb', line 9 def create(params, filters={}) payload = {} payload[klass_name] = params response = post "/#{api_path(filters)}", payload self.new(response['response']) end |