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:) ⇒ Config

Returns a new instance of Config.



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

#amountObject

Returns the value of attribute amount.



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

def amount
  @amount
end

#auto_suggestObject

Returns the value of attribute auto_suggest.



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

def auto_suggest
  @auto_suggest
end

#cadenceObject

Returns the value of attribute cadence.



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

def cadence
  @cadence
end

#config_idObject

Returns the value of attribute config_id.



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

def config_id
  @config_id
end

#currencyObject

Returns the value of attribute currency.



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

def currency
  @currency
end

#to_baseObject

Returns the value of attribute to_base.



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

def to_base
  @to_base
end