Class: AbacatePay::Resources::Transparents
- Defined in:
- lib/abacate_pay/resources/transparents.rb
Overview
Represents a transparent checkout (PIX or boleto) in the AbacatePay system.
Constant Summary collapse
- RESOURCE_PROPERTIES =
{ customer: "AbacatePay::Resources::Customers" }.freeze
- DATETIME_PROPERTIES =
%w[created_at updated_at expires_at].freeze
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#bar_code ⇒ Object
readonly
Returns the value of attribute bar_code.
-
#br_code ⇒ Object
readonly
Returns the value of attribute br_code.
-
#br_code_base64 ⇒ Object
readonly
Returns the value of attribute br_code_base64.
-
#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.
-
#due_date ⇒ Object
readonly
Returns the value of attribute due_date.
-
#expires_at ⇒ Object
readonly
Returns the value of attribute expires_at.
-
#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.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
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.
22 23 24 |
# File 'lib/abacate_pay/resources/transparents.rb', line 22 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 |
#bar_code ⇒ Object
Returns the value of attribute bar_code.
13 14 15 |
# File 'lib/abacate_pay/resources/transparents.rb', line 13 def @bar_code end |
#br_code ⇒ Object
Returns the value of attribute br_code.
13 14 15 |
# File 'lib/abacate_pay/resources/transparents.rb', line 13 def br_code @br_code end |
#br_code_base64 ⇒ Object
Returns the value of attribute br_code_base64.
13 14 15 |
# File 'lib/abacate_pay/resources/transparents.rb', line 13 def br_code_base64 @br_code_base64 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 |
#due_date ⇒ Object
Returns the value of attribute due_date.
13 14 15 |
# File 'lib/abacate_pay/resources/transparents.rb', line 13 def due_date @due_date end |
#expires_at ⇒ Object
Returns the value of attribute expires_at.
13 14 15 |
# File 'lib/abacate_pay/resources/transparents.rb', line 13 def expires_at @expires_at 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 |
#url ⇒ Object
Returns the value of attribute url.
13 14 15 |
# File 'lib/abacate_pay/resources/transparents.rb', line 13 def url @url end |
Instance Method Details
#dev_mode? ⇒ Boolean
26 27 28 |
# File 'lib/abacate_pay/resources/transparents.rb', line 26 def dev_mode? @dev_mode end |