Class: AbacatePay::Resources::Transparents
- Defined in:
- lib/abacate_pay/resources/transparents.rb
Overview
Represents a transparent PIX checkout in the AbacatePay system.
Constant Summary collapse
- RESOURCE_PROPERTIES =
{ customer: "AbacatePay::Resources::Customers" }.freeze
- DATETIME_PROPERTIES =
%w[created_at updated_at].freeze
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#customer ⇒ Object
readonly
Returns the value of attribute customer.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#dev_mode ⇒ Object
readonly
Returns the value of attribute dev_mode.
-
#expires_in ⇒ Object
readonly
Returns the value of attribute expires_in.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#qr_code ⇒ Object
readonly
Returns the value of attribute qr_code.
-
#qr_code_image ⇒ Object
readonly
Returns the value of attribute qr_code_image.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
Instance Method Summary collapse
- #dev_mode? ⇒ Boolean
-
#initialize(data) ⇒ Transparents
constructor
A new instance of Transparents.
Constructor Details
#initialize(data) ⇒ Transparents
Returns a new instance of Transparents.
17 18 19 |
# File 'lib/abacate_pay/resources/transparents.rb', line 17 def initialize(data) fill(data) end |
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
13 14 15 |
# File 'lib/abacate_pay/resources/transparents.rb', line 13 def amount @amount end |
#created_at ⇒ Object
Returns the value of attribute created_at.
13 14 15 |
# File 'lib/abacate_pay/resources/transparents.rb', line 13 def created_at @created_at end |
#customer ⇒ Object
Returns the value of attribute customer.
13 14 15 |
# File 'lib/abacate_pay/resources/transparents.rb', line 13 def customer @customer end |
#description ⇒ Object
Returns the value of attribute description.
13 14 15 |
# File 'lib/abacate_pay/resources/transparents.rb', line 13 def description @description end |
#dev_mode ⇒ Object
Returns the value of attribute dev_mode.
13 14 15 |
# File 'lib/abacate_pay/resources/transparents.rb', line 13 def dev_mode @dev_mode end |
#expires_in ⇒ Object
Returns the value of attribute expires_in.
13 14 15 |
# File 'lib/abacate_pay/resources/transparents.rb', line 13 def expires_in @expires_in end |
#id ⇒ Object
Returns the value of attribute id.
13 14 15 |
# File 'lib/abacate_pay/resources/transparents.rb', line 13 def id @id end |
#metadata ⇒ Object
Returns the value of attribute metadata.
13 14 15 |
# File 'lib/abacate_pay/resources/transparents.rb', line 13 def @metadata end |
#method ⇒ Object
Returns the value of attribute method.
13 14 15 |
# File 'lib/abacate_pay/resources/transparents.rb', line 13 def method @method end |
#qr_code ⇒ Object
Returns the value of attribute qr_code.
13 14 15 |
# File 'lib/abacate_pay/resources/transparents.rb', line 13 def qr_code @qr_code end |
#qr_code_image ⇒ Object
Returns the value of attribute qr_code_image.
13 14 15 |
# File 'lib/abacate_pay/resources/transparents.rb', line 13 def qr_code_image @qr_code_image end |
#status ⇒ Object
Returns the value of attribute status.
13 14 15 |
# File 'lib/abacate_pay/resources/transparents.rb', line 13 def status @status end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
13 14 15 |
# File 'lib/abacate_pay/resources/transparents.rb', line 13 def updated_at @updated_at end |
Instance Method Details
#dev_mode? ⇒ Boolean
21 22 23 |
# File 'lib/abacate_pay/resources/transparents.rb', line 21 def dev_mode? @dev_mode end |