Class: Rafflesia::RelationCapabilities
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::RelationCapabilities
- Defined in:
- lib/rafflesia/registry/relation_capabilities.rb
Constant Summary collapse
- HASH_ATTRS =
{ can_aggregate: :can_aggregate, can_filter: :can_filter, can_join: :can_join, can_project: :can_project }.freeze
Instance Attribute Summary collapse
-
#can_aggregate ⇒ Object
Returns the value of attribute can_aggregate.
-
#can_filter ⇒ Object
Returns the value of attribute can_filter.
-
#can_join ⇒ Object
Returns the value of attribute can_join.
-
#can_project ⇒ Object
Returns the value of attribute can_project.
Instance Method Summary collapse
-
#initialize(json) ⇒ RelationCapabilities
constructor
A new instance of RelationCapabilities.
Constructor Details
#initialize(json) ⇒ RelationCapabilities
Returns a new instance of RelationCapabilities.
21 22 23 24 25 26 27 28 |
# File 'lib/rafflesia/registry/relation_capabilities.rb', line 21 def initialize(json) super() hash = self.class.normalize(json) @can_aggregate = hash[:can_aggregate] @can_filter = hash[:can_filter] @can_join = hash[:can_join] @can_project = hash[:can_project] end |
Instance Attribute Details
#can_aggregate ⇒ Object
Returns the value of attribute can_aggregate.
15 16 17 |
# File 'lib/rafflesia/registry/relation_capabilities.rb', line 15 def can_aggregate @can_aggregate end |
#can_filter ⇒ Object
Returns the value of attribute can_filter.
15 16 17 |
# File 'lib/rafflesia/registry/relation_capabilities.rb', line 15 def can_filter @can_filter end |
#can_join ⇒ Object
Returns the value of attribute can_join.
15 16 17 |
# File 'lib/rafflesia/registry/relation_capabilities.rb', line 15 def can_join @can_join end |
#can_project ⇒ Object
Returns the value of attribute can_project.
15 16 17 |
# File 'lib/rafflesia/registry/relation_capabilities.rb', line 15 def can_project @can_project end |