Module: FlexibleApi::InstanceMethods

Defined in:
lib/flexible_api.rb

Instance Method Summary collapse

Instance Method Details

#to_hash(level_name) ⇒ Object

Return a hash of this element at the given request level (by name)



87
88
89
90
# File 'lib/flexible_api.rb', line 87

def to_hash(level_name)
  level = self.class.find_level level_name
  level.receive self
end