Class: Subledger::Domain::Credit
- Inherits:
-
Object
- Object
- Subledger::Domain::Credit
show all
- Includes:
- Value
- Defined in:
- lib/subledger/domain/value/credit.rb
Instance Attribute Summary
Attributes included from Value
#amount
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Value
#+, #==, included, #initialize, #to_s, #value
Class Method Details
.type ⇒ Object
7
8
9
|
# File 'lib/subledger/domain/value/credit.rb', line 7
def self.type
'credit'
end
|
Instance Method Details
#rest_hash ⇒ Object
11
12
13
|
# File 'lib/subledger/domain/value/credit.rb', line 11
def rest_hash
{ 'type' => 'credit', 'amount' => amount_to_s(@amount) }
end
|