Class: Subledger::Domain::PostedLine
- Defined in:
- lib/subledger/domain/line.rb
Defined Under Namespace
Classes: Entity
Instance Attribute Summary collapse
-
#balance ⇒ Object
readonly
Returns the value of attribute balance.
-
#effective_at ⇒ Object
readonly
Returns the value of attribute effective_at.
-
#posted_at ⇒ Object
readonly
Returns the value of attribute posted_at.
Attributes inherited from Line
#account, #journal_entry, #order, #value
Attributes included from Roles::Versionable
Attributes included from Roles::Storable
Attributes included from Roles::Identifiable
Attributes included from Roles::Describable
Attributes included from Value
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Line
active_klass, #amount, archived_klass, #initialize, posted_klass, root_klass, update
Methods included from Roles::Restable
#patch_hash, #post_hash, #serializable_hash, #to_json
Methods included from Roles::Collectable
Methods included from Roles::Readable
Methods included from Roles::Creatable
Methods included from Roles::Versionable
Methods included from Roles::Storable
Methods included from Roles::Describable
Methods included from Roles::Attributable
Methods included from Subledger::Domain
#==, #collection_name, #entity_name, included, #to_s
Methods included from Value
#+, #==, included, #initialize, #to_s, #value
Constructor Details
This class inherits a constructor from Subledger::Domain::Line
Instance Attribute Details
#balance ⇒ Object
Returns the value of attribute balance.
227 228 229 |
# File 'lib/subledger/domain/line.rb', line 227 def balance @balance end |
#effective_at ⇒ Object (readonly)
Returns the value of attribute effective_at.
227 228 229 |
# File 'lib/subledger/domain/line.rb', line 227 def effective_at @effective_at end |
#posted_at ⇒ Object (readonly)
Returns the value of attribute posted_at.
227 228 229 |
# File 'lib/subledger/domain/line.rb', line 227 def posted_at @posted_at end |
Class Method Details
.sub_klasses ⇒ Object
241 242 243 |
# File 'lib/subledger/domain/line.rb', line 241 def self.sub_klasses [ posted_klass ] end |
Instance Method Details
#posted? ⇒ Boolean
245 246 247 |
# File 'lib/subledger/domain/line.rb', line 245 def posted? true end |