Class: Subledger::Domain::ActiveLine
- Includes:
- Roles::Activatable, Roles::Archivable, Roles::Updatable
- Defined in:
- lib/subledger/domain/line.rb
Defined Under Namespace
Classes: Entity
Instance Attribute Summary
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 included from Roles::Activatable
Methods included from Roles::Archivable
Methods included from Roles::Updatable
Methods inherited from Line
active_klass, #amount, archived_klass, #initialize, posted_klass, root_klass, specialized_raise_unless_creatable, 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
Class Method Details
.patch_keys ⇒ Object
215 216 217 |
# File 'lib/subledger/domain/line.rb', line 215 def self.patch_keys [ :id, :account, :description, :reference, :value, :order, :version ] end |
.post_keys ⇒ Object
211 212 213 |
# File 'lib/subledger/domain/line.rb', line 211 def self.post_keys [ :account, :journal_entry, :description, :reference, :value, :order ] end |
.sub_klasses ⇒ Object
207 208 209 |
# File 'lib/subledger/domain/line.rb', line 207 def self.sub_klasses [ active_klass ] end |
Instance Method Details
#posted? ⇒ Boolean
219 220 221 |
# File 'lib/subledger/domain/line.rb', line 219 def posted? false end |