Module: HalApi::Controller::Resources::ClassMethods
- Included in:
- 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.
115 116 117 |
# File 'lib/hal_api/controller/resources.rb', line 115 def find_method @find_method end |
#resource_class ⇒ Object
Returns the value of attribute resource_class.
115 116 117 |
# File 'lib/hal_api/controller/resources.rb', line 115 def resource_class @resource_class end |
#resource_representer ⇒ Object
Returns the value of attribute resource_representer.
115 116 117 |
# File 'lib/hal_api/controller/resources.rb', line 115 def resource_representer @resource_representer end |
#resources_params ⇒ Object
Returns the value of attribute resources_params.
115 116 117 |
# File 'lib/hal_api/controller/resources.rb', line 115 def resources_params @resources_params end |
Instance Method Details
#filter_resources_by(*rparams) ⇒ Object
117 118 119 |
# File 'lib/hal_api/controller/resources.rb', line 117 def filter_resources_by(*rparams) self.resources_params = rparams end |
#represent_with(representer_class) ⇒ Object
121 122 123 |
# File 'lib/hal_api/controller/resources.rb', line 121 def represent_with(representer_class) self.resource_representer = representer_class end |