Class: Mollie::Terminal
Constant Summary collapse
- STATUS_PENDING =
"pending".freeze
- STATUS_ACTIVE =
"active".freeze
- STATUS_INACTIVE =
"inactive".freeze
Instance Attribute Summary collapse
-
#_links ⇒ Object
(also: #links)
Returns the value of attribute _links.
-
#brand ⇒ Object
Returns the value of attribute brand.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#currency ⇒ Object
Returns the value of attribute currency.
-
#deactivated_at ⇒ Object
Returns the value of attribute deactivated_at.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#model ⇒ Object
Returns the value of attribute model.
-
#profile_id ⇒ Object
Returns the value of attribute profile_id.
-
#serial_number ⇒ Object
Returns the value of attribute serial_number.
-
#status ⇒ Object
Returns the value of attribute status.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
all, #assign_attributes, cancel, create, #delete, delete, get, id_param, #initialize, parent_id, request, resource_name, update, #update
Constructor Details
This class inherits a constructor from Mollie::Base
Instance Attribute Details
#_links ⇒ Object Also known as: links
Returns the value of attribute _links.
8 9 10 |
# File 'lib/mollie/terminal.rb', line 8 def _links @_links end |
#brand ⇒ Object
Returns the value of attribute brand.
8 9 10 |
# File 'lib/mollie/terminal.rb', line 8 def brand @brand end |
#created_at ⇒ Object
Returns the value of attribute created_at.
8 9 10 |
# File 'lib/mollie/terminal.rb', line 8 def created_at @created_at end |
#currency ⇒ Object
Returns the value of attribute currency.
8 9 10 |
# File 'lib/mollie/terminal.rb', line 8 def currency @currency end |
#deactivated_at ⇒ Object
Returns the value of attribute deactivated_at.
8 9 10 |
# File 'lib/mollie/terminal.rb', line 8 def deactivated_at @deactivated_at end |
#description ⇒ Object
Returns the value of attribute description.
8 9 10 |
# File 'lib/mollie/terminal.rb', line 8 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/mollie/terminal.rb', line 8 def id @id end |
#model ⇒ Object
Returns the value of attribute model.
8 9 10 |
# File 'lib/mollie/terminal.rb', line 8 def model @model end |
#profile_id ⇒ Object
Returns the value of attribute profile_id.
8 9 10 |
# File 'lib/mollie/terminal.rb', line 8 def profile_id @profile_id end |
#serial_number ⇒ Object
Returns the value of attribute serial_number.
8 9 10 |
# File 'lib/mollie/terminal.rb', line 8 def serial_number @serial_number end |
#status ⇒ Object
Returns the value of attribute status.
8 9 10 |
# File 'lib/mollie/terminal.rb', line 8 def status @status end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
8 9 10 |
# File 'lib/mollie/terminal.rb', line 8 def updated_at @updated_at end |
Instance Method Details
#active? ⇒ Boolean
27 28 29 |
# File 'lib/mollie/terminal.rb', line 27 def active? status == STATUS_ACTIVE end |
#inactive? ⇒ Boolean
31 32 33 |
# File 'lib/mollie/terminal.rb', line 31 def inactive? status == STATUS_INACTIVE end |
#pending? ⇒ Boolean
23 24 25 |
# File 'lib/mollie/terminal.rb', line 23 def pending? status == STATUS_PENDING end |