Class: Remitmd::Webhook
Instance Attribute Summary collapse
-
#active ⇒ Object
readonly
Returns the value of attribute active.
-
#chains ⇒ Object
readonly
Returns the value of attribute chains.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#events ⇒ Object
readonly
Returns the value of attribute events.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#updated_at ⇒ Object
readonly
Returns the value of attribute updated_at.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#wallet ⇒ Object
readonly
Returns the value of attribute wallet.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Webhook
constructor
A new instance of Webhook.
Methods inherited from Model
Constructor Details
#initialize(attrs) ⇒ Webhook
Returns a new instance of Webhook.
411 412 413 414 415 416 417 418 419 420 421 |
# File 'lib/remitmd/models.rb', line 411 def initialize(attrs) h = attrs.transform_keys(&:to_s) @id = h["id"] @wallet = h["wallet"] @url = h["url"] @events = h["events"] || [] @chains = h["chains"] || [] @active = h["active"] == true @created_at = parse_time(h["created_at"]) @updated_at = parse_time(h["updated_at"]) end |
Instance Attribute Details
#active ⇒ Object (readonly)
Returns the value of attribute active.
423 424 425 |
# File 'lib/remitmd/models.rb', line 423 def active @active end |
#chains ⇒ Object (readonly)
Returns the value of attribute chains.
423 424 425 |
# File 'lib/remitmd/models.rb', line 423 def chains @chains end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
423 424 425 |
# File 'lib/remitmd/models.rb', line 423 def created_at @created_at end |
#events ⇒ Object (readonly)
Returns the value of attribute events.
423 424 425 |
# File 'lib/remitmd/models.rb', line 423 def events @events end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
423 424 425 |
# File 'lib/remitmd/models.rb', line 423 def id @id end |
#updated_at ⇒ Object (readonly)
Returns the value of attribute updated_at.
423 424 425 |
# File 'lib/remitmd/models.rb', line 423 def updated_at @updated_at end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
423 424 425 |
# File 'lib/remitmd/models.rb', line 423 def url @url end |
#wallet ⇒ Object (readonly)
Returns the value of attribute wallet.
423 424 425 |
# File 'lib/remitmd/models.rb', line 423 def wallet @wallet end |