Class: Garage::HashRepresenter

Inherits:
Object
  • Object
show all
Includes:
Representer
Defined in:
app/models/garage/hash_representer.rb

Instance Attribute Summary

Attributes included from Representer

#params, #partial, #representer_attrs, #selector

Instance Method Summary collapse

Methods included from Representer

#default_url_options, #handle_definition?, included, #link_path_for, #partial?, #represent!, representers, #resource_class, #to_resource

Constructor Details

#initialize(object) ⇒ HashRepresenter

Returns a new instance of HashRepresenter.



4
5
6
# File 'app/models/garage/hash_representer.rb', line 4

def initialize(object)
  @object = object
end

Instance Method Details

#render_hash(options = {}) ⇒ Object



8
9
10
# File 'app/models/garage/hash_representer.rb', line 8

def render_hash(options = {})
  @object
end