Method: Praxis::ResourceDefinition::ClassMethods#describe

Defined in:
lib/praxis/resource_definition.rb

#describeObject



131
132
133
134
135
136
137
138
139
# File 'lib/praxis/resource_definition.rb', line 131

def describe
  {}.tap do |hash|
    hash[:description] = description
    hash[:media_type] = media_type.id if media_type
    hash[:actions] = actions.values.map(&:describe)
    hash[:name] = self.name 
    hash[:metadata] = 
  end
end