Class: Mollie::Terminal

Inherits:
Base
  • Object
show all
Defined in:
lib/mollie/terminal.rb

Constant Summary collapse

STATUS_PENDING =
"pending".freeze
STATUS_ACTIVE =
"active".freeze
STATUS_INACTIVE =
"inactive".freeze

Instance Attribute Summary collapse

Attributes inherited from Base

#attributes

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

Returns the value of attribute _links.



8
9
10
# File 'lib/mollie/terminal.rb', line 8

def _links
  @_links
end

#brandObject

Returns the value of attribute brand.



8
9
10
# File 'lib/mollie/terminal.rb', line 8

def brand
  @brand
end

#created_atObject

Returns the value of attribute created_at.



8
9
10
# File 'lib/mollie/terminal.rb', line 8

def created_at
  @created_at
end

#currencyObject

Returns the value of attribute currency.



8
9
10
# File 'lib/mollie/terminal.rb', line 8

def currency
  @currency
end

#deactivated_atObject

Returns the value of attribute deactivated_at.



8
9
10
# File 'lib/mollie/terminal.rb', line 8

def deactivated_at
  @deactivated_at
end

#descriptionObject

Returns the value of attribute description.



8
9
10
# File 'lib/mollie/terminal.rb', line 8

def description
  @description
end

#idObject

Returns the value of attribute id.



8
9
10
# File 'lib/mollie/terminal.rb', line 8

def id
  @id
end

#modelObject

Returns the value of attribute model.



8
9
10
# File 'lib/mollie/terminal.rb', line 8

def model
  @model
end

#profile_idObject

Returns the value of attribute profile_id.



8
9
10
# File 'lib/mollie/terminal.rb', line 8

def profile_id
  @profile_id
end

#serial_numberObject

Returns the value of attribute serial_number.



8
9
10
# File 'lib/mollie/terminal.rb', line 8

def serial_number
  @serial_number
end

#statusObject

Returns the value of attribute status.



8
9
10
# File 'lib/mollie/terminal.rb', line 8

def status
  @status
end

#updated_atObject

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

Returns:

  • (Boolean)


27
28
29
# File 'lib/mollie/terminal.rb', line 27

def active?
  status == STATUS_ACTIVE
end

#inactive?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/mollie/terminal.rb', line 31

def inactive?
  status == STATUS_INACTIVE
end

#pending?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/mollie/terminal.rb', line 23

def pending?
  status == STATUS_PENDING
end