Module: JsonApiClient::Helpers::Linkable
- Extended by:
- ActiveSupport::Concern
- Included in:
- Resource
- Defined in:
- lib/json_api_client/helpers/linkable.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
17
18
19
20
21
|
# File 'lib/json_api_client/helpers/linkable.rb', line 17
def method_missing(method, *args)
return super unless has_link?(method)
linked_data.data_for(method, links[method.to_s])
end
|
Instance Method Details
#respond_to?(symbol, include_all = false) ⇒ Boolean
23
24
25
26
|
# File 'lib/json_api_client/helpers/linkable.rb', line 23
def respond_to?(symbol, include_all = false)
return true if has_link?(symbol)
super
end
|