Class: Subledger::Domain::ActiveLine

Inherits:
Line
  • Object
show all
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

#version

Attributes included from Roles::Storable

#client, #store

Attributes included from Roles::Identifiable

#id

Attributes included from Roles::Describable

#description, #reference

Attributes included from Value

#amount

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Roles::Activatable

#activate

Methods included from Roles::Archivable

#archive

Methods included from Roles::Updatable

included, #update

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

included

Methods included from Roles::Readable

included, #read

Methods included from Roles::Creatable

#create, included

Methods included from Roles::Versionable

included

Methods included from Roles::Storable

raise_unless_creatable

Methods included from Roles::Describable

raise_unless_creatable

Methods included from Roles::Attributable

#attributes

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_keysObject



215
216
217
# File 'lib/subledger/domain/line.rb', line 215

def self.patch_keys
  [ :id, :account, :description, :reference, :value, :order, :version ]
end

.post_keysObject



211
212
213
# File 'lib/subledger/domain/line.rb', line 211

def self.post_keys
  [ :account, :journal_entry, :description, :reference, :value, :order ]
end

.sub_klassesObject



207
208
209
# File 'lib/subledger/domain/line.rb', line 207

def self.sub_klasses
  [ active_klass ]
end

Instance Method Details

#posted?Boolean

Returns:

  • (Boolean)


219
220
221
# File 'lib/subledger/domain/line.rb', line 219

def posted?
  false
end