Class: DCA::Models::Position

Inherits:
BaseModel show all
Defined in:
lib/dca/models/position.rb

Constant Summary

Constants included from Binder

Binder::COMPLEX_TYPE

Instance Attribute Summary collapse

Attributes inherited from BaseModel

#base_id, #created_at, #id, #updated_at

Instance Method Summary collapse

Methods inherited from BaseModel

#attributes, #before_create, #before_update, #persisted?, #to_hash, #validate_associations

Methods included from Storage

#destroy, #save, #state

Methods included from Binder

#bind

Constructor Details

#initialize(*args) ⇒ Position

Returns a new instance of Position.



8
9
10
11
12
# File 'lib/dca/models/position.rb', line 8

def initialize(*args)
  # set instance variable id, need to place this attribute to hash, when id is not set.
  @id = nil
  super
end

Instance Attribute Details

#checksumObject

Returns the value of attribute checksum.



4
5
6
# File 'lib/dca/models/position.rb', line 4

def checksum
  @checksum
end

#published_atObject

Returns the value of attribute published_at.



4
5
6
# File 'lib/dca/models/position.rb', line 4

def published_at
  @published_at
end