Class: Remitmd::Budget
Instance Attribute Summary collapse
-
#daily_limit ⇒ Object
readonly
Returns the value of attribute daily_limit.
-
#daily_remaining ⇒ Object
readonly
Returns the value of attribute daily_remaining.
-
#daily_used ⇒ Object
readonly
Returns the value of attribute daily_used.
-
#monthly_limit ⇒ Object
readonly
Returns the value of attribute monthly_limit.
-
#monthly_remaining ⇒ Object
readonly
Returns the value of attribute monthly_remaining.
-
#monthly_used ⇒ Object
readonly
Returns the value of attribute monthly_used.
-
#per_tx_limit ⇒ Object
readonly
Returns the value of attribute per_tx_limit.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Budget
constructor
A new instance of Budget.
Methods inherited from Model
Constructor Details
#initialize(attrs) ⇒ Budget
Returns a new instance of Budget.
363 364 365 366 367 368 369 370 371 372 |
# File 'lib/remitmd/models.rb', line 363 def initialize(attrs) h = attrs.transform_keys(&:to_s) @daily_limit = decimal(h["daily_limit"]) @daily_used = decimal(h["daily_used"]) @daily_remaining = decimal(h["daily_remaining"]) @monthly_limit = decimal(h["monthly_limit"]) @monthly_used = decimal(h["monthly_used"]) @monthly_remaining = decimal(h["monthly_remaining"]) @per_tx_limit = decimal(h["per_tx_limit"]) end |
Instance Attribute Details
#daily_limit ⇒ Object (readonly)
Returns the value of attribute daily_limit.
374 375 376 |
# File 'lib/remitmd/models.rb', line 374 def daily_limit @daily_limit end |
#daily_remaining ⇒ Object (readonly)
Returns the value of attribute daily_remaining.
374 375 376 |
# File 'lib/remitmd/models.rb', line 374 def daily_remaining @daily_remaining end |
#daily_used ⇒ Object (readonly)
Returns the value of attribute daily_used.
374 375 376 |
# File 'lib/remitmd/models.rb', line 374 def daily_used @daily_used end |
#monthly_limit ⇒ Object (readonly)
Returns the value of attribute monthly_limit.
374 375 376 |
# File 'lib/remitmd/models.rb', line 374 def monthly_limit @monthly_limit end |
#monthly_remaining ⇒ Object (readonly)
Returns the value of attribute monthly_remaining.
374 375 376 |
# File 'lib/remitmd/models.rb', line 374 def monthly_remaining @monthly_remaining end |
#monthly_used ⇒ Object (readonly)
Returns the value of attribute monthly_used.
374 375 376 |
# File 'lib/remitmd/models.rb', line 374 def monthly_used @monthly_used end |
#per_tx_limit ⇒ Object (readonly)
Returns the value of attribute per_tx_limit.
374 375 376 |
# File 'lib/remitmd/models.rb', line 374 def per_tx_limit @per_tx_limit end |