Class: Pokepay::Response::PrivateMoney

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(row) ⇒ PrivateMoney

Returns a new instance of PrivateMoney.



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/pokepay_partner_ruby_sdk/response/private_money.rb', line 7

def initialize(row)
  @id = row["id"]
  @name = row["name"]
  @unit = row["unit"]
  @is_exclusive = row["is_exclusive"]
  @description = row["description"]
  @oneline_message = row["oneline_message"]
  @organization = Organization.new(row["organization"])
  @max_balance = row["max_balance"]
  @transfer_limit = row["transfer_limit"]
  @money_topup_transfer_limit = row["money_topup_transfer_limit"]
  @type = row["type"]
  @expiration_type = row["expiration_type"]
  @enable_topup_by_member = row["enable_topup_by_member"]
  @display_money_and_point = row["display_money_and_point"]
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



27
28
29
# File 'lib/pokepay_partner_ruby_sdk/response/private_money.rb', line 27

def description
  @description
end

#display_money_and_pointObject (readonly)

Returns the value of attribute display_money_and_point.



36
37
38
# File 'lib/pokepay_partner_ruby_sdk/response/private_money.rb', line 36

def display_money_and_point
  @display_money_and_point
end

#enable_topup_by_memberObject (readonly)

Returns the value of attribute enable_topup_by_member.



35
36
37
# File 'lib/pokepay_partner_ruby_sdk/response/private_money.rb', line 35

def enable_topup_by_member
  @enable_topup_by_member
end

#expiration_typeObject (readonly)

Returns the value of attribute expiration_type.



34
35
36
# File 'lib/pokepay_partner_ruby_sdk/response/private_money.rb', line 34

def expiration_type
  @expiration_type
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#is_exclusiveObject (readonly)

Returns the value of attribute is_exclusive.



26
27
28
# File 'lib/pokepay_partner_ruby_sdk/response/private_money.rb', line 26

def is_exclusive
  @is_exclusive
end

#max_balanceObject (readonly)

Returns the value of attribute max_balance.



30
31
32
# File 'lib/pokepay_partner_ruby_sdk/response/private_money.rb', line 30

def max_balance
  @max_balance
end

#money_topup_transfer_limitObject (readonly)

Returns the value of attribute money_topup_transfer_limit.



32
33
34
# File 'lib/pokepay_partner_ruby_sdk/response/private_money.rb', line 32

def money_topup_transfer_limit
  @money_topup_transfer_limit
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#oneline_messageObject (readonly)

Returns the value of attribute oneline_message.



28
29
30
# File 'lib/pokepay_partner_ruby_sdk/response/private_money.rb', line 28

def oneline_message
  @oneline_message
end

#organizationObject (readonly)

Returns the value of attribute organization.



29
30
31
# File 'lib/pokepay_partner_ruby_sdk/response/private_money.rb', line 29

def organization
  @organization
end

#transfer_limitObject (readonly)

Returns the value of attribute transfer_limit.



31
32
33
# File 'lib/pokepay_partner_ruby_sdk/response/private_money.rb', line 31

def transfer_limit
  @transfer_limit
end

#typeObject (readonly)

Returns the value of attribute type.



33
34
35
# File 'lib/pokepay_partner_ruby_sdk/response/private_money.rb', line 33

def type
  @type
end

#unitObject (readonly)

Returns the value of attribute unit.



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

def unit
  @unit
end