Class: Pokepay::Response::Check
- Inherits:
-
Object
- Object
- Pokepay::Response::Check
- Defined in:
- lib/pokepay_partner_ruby_sdk/response/check.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#expires_at ⇒ Object
readonly
Returns the value of attribute expires_at.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#is_disabled ⇒ Object
readonly
Returns the value of attribute is_disabled.
-
#is_onetime ⇒ Object
readonly
Returns the value of attribute is_onetime.
-
#last_used_at ⇒ Object
readonly
Returns the value of attribute last_used_at.
-
#money_amount ⇒ Object
readonly
Returns the value of attribute money_amount.
-
#point_amount ⇒ Object
readonly
Returns the value of attribute point_amount.
-
#point_expires_at ⇒ Object
readonly
Returns the value of attribute point_expires_at.
-
#point_expires_in_days ⇒ Object
readonly
Returns the value of attribute point_expires_in_days.
-
#private_money ⇒ Object
readonly
Returns the value of attribute private_money.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#usage_count ⇒ Object
readonly
Returns the value of attribute usage_count.
-
#usage_limit ⇒ Object
readonly
Returns the value of attribute usage_limit.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(row) ⇒ Check
constructor
A new instance of Check.
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
#amount ⇒ Object (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_at ⇒ Object (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 |
#description ⇒ Object (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_at ⇒ Object (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 |
#id ⇒ Object (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_disabled ⇒ Object (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_onetime ⇒ Object (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_at ⇒ Object (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_amount ⇒ Object (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_amount ⇒ Object (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_at ⇒ Object (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_days ⇒ Object (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_money ⇒ Object (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 |
#token ⇒ Object (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_count ⇒ Object (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_limit ⇒ Object (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 |
#user ⇒ Object (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 |