Class: Financo::N26::History::Entry

Inherits:
Struct
  • Object
show all
Defined in:
lib/financo/n26/history.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#amountObject

Returns the value of attribute amount

Returns:

  • (Object)

    the current value of amount



9
10
11
# File 'lib/financo/n26/history.rb', line 9

def amount
  @amount
end

#dateObject

Returns the value of attribute date

Returns:

  • (Object)

    the current value of date



9
10
11
# File 'lib/financo/n26/history.rb', line 9

def date
  @date
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



9
10
11
# File 'lib/financo/n26/history.rb', line 9

def id
  @id
end

Instance Method Details

#encode_with(coder) ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/financo/n26/history.rb', line 10

def encode_with(coder)
  coder.tag = nil
  coder.map = {
    'id' => id,
    'date' => date,
    'amount' => amount
  }
end