Class: Garage::HashRepresenter
- Inherits:
-
Object
- Object
- Garage::HashRepresenter
- 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
-
#initialize(object) ⇒ HashRepresenter
constructor
A new instance of HashRepresenter.
- #render_hash(options = {}) ⇒ Object
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( = {}) @object end |