Class: AbacatePay::Resources::Transparents

Inherits:
Resource
  • Object
show all
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

Instance Method Summary collapse

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

#amountObject

Returns the value of attribute amount.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def amount
  @amount
end

#created_atObject

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

#customerObject

Returns the value of attribute customer.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def customer
  @customer
end

#descriptionObject

Returns the value of attribute description.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def description
  @description
end

#dev_modeObject

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_inObject

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

#idObject

Returns the value of attribute id.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def id
  @id
end

#metadataObject

Returns the value of attribute metadata.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def 
  @metadata
end

#methodObject

Returns the value of attribute method.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def method
  @method
end

#qr_codeObject

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_imageObject

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

#statusObject

Returns the value of attribute status.



13
14
15
# File 'lib/abacate_pay/resources/transparents.rb', line 13

def status
  @status
end

#updated_atObject

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

Returns:

  • (Boolean)


21
22
23
# File 'lib/abacate_pay/resources/transparents.rb', line 21

def dev_mode?
  @dev_mode
end