Class: OldApiResource::Associations::SingleObjectProxy
- Inherits:
-
AssociationProxy
- Object
- AssociationProxy
- OldApiResource::Associations::SingleObjectProxy
- Defined in:
- lib/old_api_resource/associations/single_object_proxy.rb
Instance Attribute Summary
Attributes inherited from AssociationProxy
#internal_object, #klass, #loaded, #remote_path, #scopes, #times_loaded
Instance Method Summary collapse
Methods inherited from AssociationProxy
#initialize, #inspect, #method_missing, #reload, #scope?, #to_s
Constructor Details
This class inherits a constructor from OldApiResource::Associations::AssociationProxy
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class OldApiResource::Associations::AssociationProxy
Instance Method Details
#internal_object=(contents) ⇒ Object
13 14 15 16 |
# File 'lib/old_api_resource/associations/single_object_proxy.rb', line 13 def internal_object=(contents) return @internal_object = contents if contents.is_a?(self.klass) return load(contents) end |
#serializable_hash(options = {}) ⇒ Object
9 10 11 |
# File 'lib/old_api_resource/associations/single_object_proxy.rb', line 9 def serializable_hash( = {}) self.internal_object.serializable_hash() end |