Class: Clevic::Sampler::VirtualField

Inherits:
Object
  • Object
show all
Defined in:
lib/clevic/sampler.rb

Overview

Hmm. The first reified exemplar of a relational nested Field

Instance Method Summary collapse

Constructor Details

#initialize(entity_class, display) ⇒ VirtualField

Returns a new instance of VirtualField.



109
110
111
# File 'lib/clevic/sampler.rb', line 109

def initialize( entity_class, display )
  @entity_class, @display = entity_class, display
end

Instance Method Details

#attribute ⇒ Object



114
# File 'lib/clevic/sampler.rb', line 114

def attribute; @display; end

#display ⇒ Object



115
# File 'lib/clevic/sampler.rb', line 115

def display; nil; end

#entity_class ⇒ Object



113
# File 'lib/clevic/sampler.rb', line 113

def entity_class; @entity_class; end

#meta ⇒ Object



116
# File 'lib/clevic/sampler.rb', line 116

def meta; @entity_class.meta[attribute]; end

#set ⇒ Object



117
# File 'lib/clevic/sampler.rb', line 117

def set; nil; end