Class: MonoMerchant::Qr::List

Inherits:
ApiRequest show all
Defined in:
lib/mono-merchant/qr/list.rb

Overview

Get list of QR paydesks

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/qr/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 (shortQrId, qrId, amountType, pageUrl)?



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

def data
  %w[list]
end