Class: Remitmd::Budget

Inherits:
Model
  • Object
show all
Defined in:
lib/remitmd/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Model

#inspect, #to_h

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_limitObject (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_remainingObject (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_usedObject (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_limitObject (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_remainingObject (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_usedObject (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_limitObject (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