Class: ActiveTriples::Property
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- ActiveTriples::Property
- Defined in:
- lib/active_triples/property.rb
Overview
A value object to encapsulate what a Property is. Instantiate with a hash of options.
Instance Method Summary collapse
-
#to_h ⇒ Hash
Returns the property’s configuration values.
Instance Method Details
#to_h ⇒ Hash
Returns the property’s configuration values. Will not return #name, which is meant to only be accessible via the accessor.
9 10 11 |
# File 'lib/active_triples/property.rb', line 9 def to_h super.except(:name) end |