Class: MonoMerchant::Submerchant::List

Inherits:
ApiRequest
  • Object
show all
Defined in:
lib/mono-merchant/submerchant/list.rb

Overview

Get list of sub-merchants

Constant Summary

Constants inherited from ApiRequest

ApiRequest::API_URL, ApiRequest::DEFAULT_CURRENCY

Instance Attribute Summary

Attributes inherited from ApiRequest

#errors, #type

Instance Method Summary collapse

Methods inherited from ApiRequest

#url

Constructor Details

#initializeList

Returns a new instance of List.



7
8
9
# File 'lib/mono-merchant/submerchant/list.rb', line 7

def initialize
  super(type: :get)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class MonoMerchant::ApiRequest

Instance Method Details

#dataObject

todo: make array of objects from response list (code, edrpou, iban)?



12
13
14
# File 'lib/mono-merchant/submerchant/list.rb', line 12

def data
  %w[list]
end