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.
113 114 115 |
# File 'lib/hal_api/controller/resources.rb', line 113 def find_method @find_method end |
#resource_class ⇒ Object
Returns the value of attribute resource_class.
113 114 115 |
# File 'lib/hal_api/controller/resources.rb', line 113 def resource_class @resource_class end |
#resource_representer ⇒ Object
Returns the value of attribute resource_representer.
113 114 115 |
# File 'lib/hal_api/controller/resources.rb', line 113 def resource_representer @resource_representer end |
#resources_params ⇒ Object
Returns the value of attribute resources_params.
113 114 115 |
# File 'lib/hal_api/controller/resources.rb', line 113 def resources_params @resources_params end |
Instance Method Details
#filter_resources_by(*rparams) ⇒ Object
115 116 117 |
# File 'lib/hal_api/controller/resources.rb', line 115 def filter_resources_by(*rparams) self.resources_params = rparams end |
#represent_with(representer_class) ⇒ Object
119 120 121 |
# File 'lib/hal_api/controller/resources.rb', line 119 def represent_with(representer_class) self.resource_representer = representer_class end |