Class: Xdelivery::API::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/xdelivery/api/base.rb

Direct Known Subclasses

Orders, Ping, Products, Sales, Shops

Constant Summary collapse

BASE_URL =
'https://api.xdelivery.io'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(merchant_no = '', access_key = '') ⇒ Base

Returns a new instance of Base.



11
12
13
14
# File 'lib/xdelivery/api/base.rb', line 11

def initialize(merchant_no='', access_key='')
  self.merchant_no = merchant_no
  self.access_key = access_key
end

Instance Attribute Details

#access_keyObject

Returns the value of attribute access_key.



7
8
9
# File 'lib/xdelivery/api/base.rb', line 7

def access_key
  @access_key
end

#merchant_noObject

Returns the value of attribute merchant_no.



7
8
9
# File 'lib/xdelivery/api/base.rb', line 7

def merchant_no
  @merchant_no
end