Class: Cornerstore::DifferentiatingProperty

Inherits:
Model::Base
  • Object
show all
Defined in:
lib/cornerstore/api/differentiating_property.rb

Defined Under Namespace

Classes: Resource

Instance Attribute Summary collapse

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

#keyObject

Returns the value of attribute key.



2
3
4
# File 'lib/cornerstore/api/differentiating_property.rb', line 2

def key
  @key
end

#valueObject

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

#attributesObject



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