Class: LunchMoney::Objects::Data
- Defined in:
- lib/lunchmoney/objects/data.rb
Overview
Instance Attribute Summary collapse
-
#budget_amount ⇒ Object
Returns the value of attribute budget_amount.
-
#budget_currency ⇒ Object
Returns the value of attribute budget_currency.
-
#budget_to_base ⇒ Object
Returns the value of attribute budget_to_base.
-
#is_automated ⇒ Object
Returns the value of attribute is_automated.
-
#num_transactions ⇒ Object
Returns the value of attribute num_transactions.
-
#spending_to_base ⇒ Object
Returns the value of attribute spending_to_base.
Instance Method Summary collapse
-
#initialize(spending_to_base: nil, num_transactions: nil, budget_amount: nil, budget_currency: nil, budget_to_base: nil, is_automated: nil) ⇒ Data
constructor
A new instance of Data.
Methods inherited from Object
Constructor Details
#initialize(spending_to_base: nil, num_transactions: nil, budget_amount: nil, budget_currency: nil, budget_to_base: nil, is_automated: nil) ⇒ Data
Returns a new instance of Data.
32 33 34 35 36 37 38 39 40 41 |
# File 'lib/lunchmoney/objects/data.rb', line 32 def initialize(spending_to_base: nil, num_transactions: nil, budget_amount: nil, budget_currency: nil, budget_to_base: nil, is_automated: nil) super() @budget_amount = budget_amount @budget_currency = budget_currency @budget_to_base = budget_to_base @spending_to_base = spending_to_base @num_transactions = num_transactions @is_automated = is_automated end |
Instance Attribute Details
#budget_amount ⇒ Object
Returns the value of attribute budget_amount.
14 15 16 |
# File 'lib/lunchmoney/objects/data.rb', line 14 def budget_amount @budget_amount end |
#budget_currency ⇒ Object
Returns the value of attribute budget_currency.
17 18 19 |
# File 'lib/lunchmoney/objects/data.rb', line 17 def budget_currency @budget_currency end |
#budget_to_base ⇒ Object
Returns the value of attribute budget_to_base.
14 15 16 |
# File 'lib/lunchmoney/objects/data.rb', line 14 def budget_to_base @budget_to_base end |
#is_automated ⇒ Object
Returns the value of attribute is_automated.
20 21 22 |
# File 'lib/lunchmoney/objects/data.rb', line 20 def is_automated @is_automated end |
#num_transactions ⇒ Object
Returns the value of attribute num_transactions.
11 12 13 |
# File 'lib/lunchmoney/objects/data.rb', line 11 def num_transactions @num_transactions end |
#spending_to_base ⇒ Object
Returns the value of attribute spending_to_base.
14 15 16 |
# File 'lib/lunchmoney/objects/data.rb', line 14 def spending_to_base @spending_to_base end |