Class: Pokepay::Response::Check

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(row) ⇒ Check

Returns a new instance of Check.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/pokepay_partner_ruby_sdk/response/check.rb', line 8

def initialize(row)
  @id = row["id"]
  @created_at = row["created_at"]
  @amount = row["amount"]
  @money_amount = row["money_amount"]
  @point_amount = row["point_amount"]
  @description = row["description"]
  @user = User.new(row["user"])
  @is_onetime = row["is_onetime"]
  @is_disabled = row["is_disabled"]
  @expires_at = row["expires_at"]
  @last_used_at = row["last_used_at"]
  @private_money = PrivateMoney.new(row["private_money"])
  @usage_limit = row["usage_limit"]
  @usage_count = row["usage_count"]
  @point_expires_at = row["point_expires_at"]
  @point_expires_in_days = row["point_expires_in_days"]
  @token = row["token"]
end

Instance Attribute Details

#amountObject (readonly)

Returns the value of attribute amount.



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

def amount
  @amount
end

#created_atObject (readonly)

Returns the value of attribute created_at.



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

def created_at
  @created_at
end

#descriptionObject (readonly)

Returns the value of attribute description.



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

def description
  @description
end

#expires_atObject (readonly)

Returns the value of attribute expires_at.



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

def expires_at
  @expires_at
end

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#is_disabledObject (readonly)

Returns the value of attribute is_disabled.



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

def is_disabled
  @is_disabled
end

#is_onetimeObject (readonly)

Returns the value of attribute is_onetime.



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

def is_onetime
  @is_onetime
end

#last_used_atObject (readonly)

Returns the value of attribute last_used_at.



37
38
39
# File 'lib/pokepay_partner_ruby_sdk/response/check.rb', line 37

def last_used_at
  @last_used_at
end

#money_amountObject (readonly)

Returns the value of attribute money_amount.



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

def money_amount
  @money_amount
end

#point_amountObject (readonly)

Returns the value of attribute point_amount.



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

def point_amount
  @point_amount
end

#point_expires_atObject (readonly)

Returns the value of attribute point_expires_at.



41
42
43
# File 'lib/pokepay_partner_ruby_sdk/response/check.rb', line 41

def point_expires_at
  @point_expires_at
end

#point_expires_in_daysObject (readonly)

Returns the value of attribute point_expires_in_days.



42
43
44
# File 'lib/pokepay_partner_ruby_sdk/response/check.rb', line 42

def point_expires_in_days
  @point_expires_in_days
end

#private_moneyObject (readonly)

Returns the value of attribute private_money.



38
39
40
# File 'lib/pokepay_partner_ruby_sdk/response/check.rb', line 38

def private_money
  @private_money
end

#tokenObject (readonly)

Returns the value of attribute token.



43
44
45
# File 'lib/pokepay_partner_ruby_sdk/response/check.rb', line 43

def token
  @token
end

#usage_countObject (readonly)

Returns the value of attribute usage_count.



40
41
42
# File 'lib/pokepay_partner_ruby_sdk/response/check.rb', line 40

def usage_count
  @usage_count
end

#usage_limitObject (readonly)

Returns the value of attribute usage_limit.



39
40
41
# File 'lib/pokepay_partner_ruby_sdk/response/check.rb', line 39

def usage_limit
  @usage_limit
end

#userObject (readonly)

Returns the value of attribute user.



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

def user
  @user
end