Class: Pokepay::Response::ShopWithMetadata

Inherits:
Object
  • Object
show all
Defined in:
lib/pokepay_partner_ruby_sdk/response/shop_with_metadata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(row) ⇒ ShopWithMetadata

Returns a new instance of ShopWithMetadata.



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/pokepay_partner_ruby_sdk/response/shop_with_metadata.rb', line 6

def initialize(row)
  @id = row["id"]
  @name = row["name"]
  @organization_code = row["organization_code"]
  @status = row["status"]
  @postal_code = row["postal_code"]
  @address = row["address"]
  @tel = row["tel"]
  @email = row["email"]
  @external_id = row["external_id"]
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



22
23
24
# File 'lib/pokepay_partner_ruby_sdk/response/shop_with_metadata.rb', line 22

def address
  @address
end

#emailObject (readonly)

Returns the value of attribute email.



24
25
26
# File 'lib/pokepay_partner_ruby_sdk/response/shop_with_metadata.rb', line 24

def email
  @email
end

#external_idObject (readonly)

Returns the value of attribute external_id.



25
26
27
# File 'lib/pokepay_partner_ruby_sdk/response/shop_with_metadata.rb', line 25

def external_id
  @external_id
end

#idObject (readonly)

Returns the value of attribute id.



17
18
19
# File 'lib/pokepay_partner_ruby_sdk/response/shop_with_metadata.rb', line 17

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



18
19
20
# File 'lib/pokepay_partner_ruby_sdk/response/shop_with_metadata.rb', line 18

def name
  @name
end

#organization_codeObject (readonly)

Returns the value of attribute organization_code.



19
20
21
# File 'lib/pokepay_partner_ruby_sdk/response/shop_with_metadata.rb', line 19

def organization_code
  @organization_code
end

#postal_codeObject (readonly)

Returns the value of attribute postal_code.



21
22
23
# File 'lib/pokepay_partner_ruby_sdk/response/shop_with_metadata.rb', line 21

def postal_code
  @postal_code
end

#statusObject (readonly)

Returns the value of attribute status.



20
21
22
# File 'lib/pokepay_partner_ruby_sdk/response/shop_with_metadata.rb', line 20

def status
  @status
end

#telObject (readonly)

Returns the value of attribute tel.



23
24
25
# File 'lib/pokepay_partner_ruby_sdk/response/shop_with_metadata.rb', line 23

def tel
  @tel
end