Class: Clevic::FieldValuer::Valuer

Inherits:
Object
  • Object
show all
Includes:
Clevic::FieldValuer
Defined in:
lib/clevic/field_valuer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Clevic::FieldValuer

#attribute_value, #attribute_value=, #display_value, #edit_value, #edit_value=, #find_related, #raw_value, #text_value=, #tooltip, valuer, #valuer, #writer

Constructor Details

#initialize(field, entity) ⇒ Valuer

Returns a new instance of Valuer.



159
160
161
# File 'lib/clevic/field_valuer.rb', line 159

def initialize( field, entity )
  @field, @entity = field, entity
end

Instance Attribute Details

#entityObject

Returns the value of attribute entity.



158
159
160
# File 'lib/clevic/field_valuer.rb', line 158

def entity
  @entity
end

#fieldObject

Returns the value of attribute field.



158
159
160
# File 'lib/clevic/field_valuer.rb', line 158

def field
  @field
end