Class: Subledger::Domain::PostedLine

Inherits:
Line
  • Object
show all
Defined in:
lib/subledger/domain/line.rb

Defined Under Namespace

Classes: Entity

Instance Attribute Summary collapse

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 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

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

Instance Attribute Details

#balanceObject

Returns the value of attribute balance.



227
228
229
# File 'lib/subledger/domain/line.rb', line 227

def balance
  @balance
end

#effective_atObject (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_atObject (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_klassesObject



241
242
243
# File 'lib/subledger/domain/line.rb', line 241

def self.sub_klasses
  [ posted_klass ]
end

Instance Method Details

#posted?Boolean

Returns:

  • (Boolean)


245
246
247
# File 'lib/subledger/domain/line.rb', line 245

def posted?
  true
end