Module: EntityCache::Controls::Entity

Defined in:
lib/entity_cache/controls/entity.rb

Defined Under Namespace

Classes: Example

Class Method Summary collapse

Class Method Details

.exampleObject



4
5
6
# File 'lib/entity_cache/controls/entity.rb', line 4

def self.example
  Example.new(id, some_attr, other_attr)
end

.idObject



8
9
10
# File 'lib/entity_cache/controls/entity.rb', line 8

def self.id
  ID.example
end

.other_attrObject



16
17
18
# File 'lib/entity_cache/controls/entity.rb', line 16

def self.other_attr
  'other-value'
end

.some_attrObject



12
13
14
# File 'lib/entity_cache/controls/entity.rb', line 12

def self.some_attr
  'some-value'
end