Class: Rafflesia::RelationCapabilities

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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_aggregateObject

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_filterObject

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_joinObject

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_projectObject

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