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) ⇒ void

Parameters:

  • spending_to_base (Number, nil) (defaults to: nil)
  • num_transactions (Integer, nil) (defaults to: nil)
  • budget_amount (Number, nil) (defaults to: nil)
  • budget_currency (String, nil) (defaults to: nil)
  • budget_to_base (Number, nil) (defaults to: nil)
  • is_automated (Boolean, nil) (defaults to: nil)


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_amountNumber?

Returns:



14
15
16
# File 'lib/lunchmoney/objects/data.rb', line 14

def budget_amount
  @budget_amount
end

#budget_currencyString?

Returns:

  • (String, nil)


17
18
19
# File 'lib/lunchmoney/objects/data.rb', line 17

def budget_currency
  @budget_currency
end

#budget_to_baseNumber?

Returns:



14
15
16
# File 'lib/lunchmoney/objects/data.rb', line 14

def budget_to_base
  @budget_to_base
end

#is_automatedBoolean?

Returns:

  • (Boolean, nil)


20
21
22
# File 'lib/lunchmoney/objects/data.rb', line 20

def is_automated
  @is_automated
end

#num_transactionsInteger?

API object reference documentation: lunchmoney.dev/#data-object

Returns:

  • (Integer, nil)


11
12
13
# File 'lib/lunchmoney/objects/data.rb', line 11

def num_transactions
  @num_transactions
end

#spending_to_baseNumber?

Returns:



14
15
16
# File 'lib/lunchmoney/objects/data.rb', line 14

def spending_to_base
  @spending_to_base
end