class Mollie::Terminal
Constants
- STATUS_ACTIVE
- STATUS_INACTIVE
- STATUS_PENDING
Attributes
_links[RW]
brand[RW]
created_at[RW]
currency[RW]
deactivated_at[RW]
description[RW]
id[RW]
links[RW]
model[RW]
profile_id[RW]
serial_number[RW]
status[RW]
updated_at[RW]
Public Instance Methods
active?()
click to toggle source
# File lib/mollie/terminal.rb, line 27 def active? status == STATUS_ACTIVE end
created_at=(created_at)
click to toggle source
# File lib/mollie/terminal.rb, line 35 def created_at=(created_at) @created_at = begin Time.parse(created_at.to_s) rescue StandardError nil end end
deactivated_at=(deactivated_at)
click to toggle source
# File lib/mollie/terminal.rb, line 51 def deactivated_at=(deactivated_at) @deactivated_at = begin Time.parse(deactivated_at.to_s) rescue StandardError nil end end
inactive?()
click to toggle source
# File lib/mollie/terminal.rb, line 31 def inactive? status == STATUS_INACTIVE end
pending?()
click to toggle source
# File lib/mollie/terminal.rb, line 23 def pending? status == STATUS_PENDING end
updated_at=(updated_at)
click to toggle source
# File lib/mollie/terminal.rb, line 43 def updated_at=(updated_at) @updated_at = begin Time.parse(updated_at.to_s) rescue StandardError nil end end