module JsonApiClient::Helpers::Associatable
Attributes
__belongs_to_params[RW]
__cached_associations[RW]
Public Instance Methods
_belongs_to_params()
click to toggle source
# File lib/json_api_client/helpers/associatable.rb, line 61 def _belongs_to_params self.__belongs_to_params ||= {} end
_cached_associations()
click to toggle source
# File lib/json_api_client/helpers/associatable.rb, line 69 def _cached_associations self.__cached_associations ||= {} end
_cached_relationship(attr_name) { || ... }
click to toggle source
# File lib/json_api_client/helpers/associatable.rb, line 81 def _cached_relationship(attr_name) return _cached_associations[attr_name] if _cached_associations.has_key?(attr_name) _cached_associations[attr_name] = yield end
_clear_belongs_to_params()
click to toggle source
# File lib/json_api_client/helpers/associatable.rb, line 65 def _clear_belongs_to_params self.__belongs_to_params = {} end
_clear_cached_relationship(attr_name)
click to toggle source
# File lib/json_api_client/helpers/associatable.rb, line 77 def _clear_cached_relationship(attr_name) _cached_associations.delete(attr_name) end
_clear_cached_relationships()
click to toggle source
# File lib/json_api_client/helpers/associatable.rb, line 73 def _clear_cached_relationships self.__cached_associations = {} end