Module: HalApi::Controller::Resources::ClassMethods
- Defined in:
- lib/hal_api/controller/resources.rb
Instance Attribute Summary collapse
-
#find_method(new_method = nil) ⇒ Object
Returns the value of attribute find_method.
-
#resource_class ⇒ Object
Returns the value of attribute resource_class.
-
#resource_representer ⇒ Object
Returns the value of attribute resource_representer.
-
#resources_params ⇒ Object
Returns the value of attribute resources_params.
Instance Method Summary collapse
Instance Attribute Details
#find_method(new_method = nil) ⇒ Object
Returns the value of attribute find_method.
121 122 123 |
# File 'lib/hal_api/controller/resources.rb', line 121 def find_method @find_method end |
#resource_class ⇒ Object
Returns the value of attribute resource_class.
121 122 123 |
# File 'lib/hal_api/controller/resources.rb', line 121 def resource_class @resource_class end |
#resource_representer ⇒ Object
Returns the value of attribute resource_representer.
121 122 123 |
# File 'lib/hal_api/controller/resources.rb', line 121 def resource_representer @resource_representer end |
#resources_params ⇒ Object
Returns the value of attribute resources_params.
121 122 123 |
# File 'lib/hal_api/controller/resources.rb', line 121 def resources_params @resources_params end |
Instance Method Details
#filter_resources_by(*rparams) ⇒ Object
123 124 125 |
# File 'lib/hal_api/controller/resources.rb', line 123 def filter_resources_by(*rparams) self.resources_params = rparams end |
#represent_with(representer_class) ⇒ Object
127 128 129 |
# File 'lib/hal_api/controller/resources.rb', line 127 def represent_with(representer_class) self.resource_representer = representer_class end |