Class: EntitySchema::Fields::Property
- Defined in:
- lib/entity_schema/fields/property.rb
Overview
Simple field with any value
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Abstract
#name, #specification, #src_key
Instance Method Summary collapse
- #get(obj) ⇒ Object
-
#initialize(options) ⇒ Property
constructor
A new instance of Property.
Methods inherited from Abstract
#given?, #public_get, #public_set, #serialize, #set
Constructor Details
#initialize(options) ⇒ Property
Returns a new instance of Property.
11 12 13 14 |
# File 'lib/entity_schema/fields/property.rb', line 11 def initialize() super() specification.predicate = [:predicate] end |
Instance Method Details
#get(obj) ⇒ Object
16 17 18 |
# File 'lib/entity_schema/fields/property.rb', line 16 def get(obj) read(obj) end |