Class: Cornerstore::DifferentiatingProperty
- Inherits:
-
Model::Base
- Object
- Model::Base
- Cornerstore::DifferentiatingProperty
- Defined in:
- lib/cornerstore/api/differentiating_property.rb
Defined Under Namespace
Classes: Resource
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from Model::Base
#_id, #_slugs, #created_at, #parent, #updated_at
Instance Method Summary collapse
Methods inherited from Model::Base
#==, #attributes=, #initialize, #inspect, #method_missing, method_missing, #to_param, #url
Constructor Details
This class inherits a constructor from Cornerstore::Model::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Cornerstore::Model::Base
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
2 3 4 |
# File 'lib/cornerstore/api/differentiating_property.rb', line 2 def key @key end |
#value ⇒ Object
Returns the value of attribute value.
2 3 4 |
# File 'lib/cornerstore/api/differentiating_property.rb', line 2 def value @value end |
Instance Method Details
#attributes ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/cornerstore/api/differentiating_property.rb', line 5 def attributes { hide_from: hide_from, key: key, value: value } end |