Class: LunchMoney::Objects::Data

Inherits:
Object
  • Object
show all
Defined in:
lib/lunchmoney/objects/data.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Object

#serialize

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_amountObject

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_currencyObject

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_baseObject

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_automatedObject

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_transactionsObject

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_baseObject

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