class EntitySchema::Fields::Property

Simple field with any value

Public Class Methods

new(options) click to toggle source
Calls superclass method EntitySchema::Fields::Abstract::new
# File lib/entity_schema/fields/property.rb, line 11
def initialize(options)
  super(options)
  specification.predicate = options[:predicate]
end

Public Instance Methods

get(obj) click to toggle source
# File lib/entity_schema/fields/property.rb, line 16
def get(obj)
  read(obj)
end