Class: LunchMoney::Objects::Config

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

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Object

#serialize

Constructor Details

#initialize(config_id:, cadence:, amount:, currency:, to_base:, auto_suggest:) ⇒ void

Parameters:

  • config_id (Integer)
  • cadence (String)
  • amount (Number)
  • currency (String)
  • to_base (Number)
  • auto_suggest (String)


29
30
31
32
33
34
35
36
37
# File 'lib/lunchmoney/objects/config.rb', line 29

def initialize(config_id:, cadence:, amount:, currency:, to_base:, auto_suggest:)
  super()
  @config_id = config_id
  @cadence = cadence
  @amount = amount
  @currency = currency
  @to_base = to_base
  @auto_suggest = auto_suggest
end

Instance Attribute Details

#amountNumber

Returns:



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

def amount
  @amount
end

#auto_suggestString

Returns:

  • (String)


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

def auto_suggest
  @auto_suggest
end

#cadenceString

Returns:

  • (String)


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

def cadence
  @cadence
end

#config_idInteger

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

Returns:

  • (Integer)


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

def config_id
  @config_id
end

#currencyString

Returns:

  • (String)


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

def currency
  @currency
end

#to_baseNumber

Returns:



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

def to_base
  @to_base
end