Class: Doze::Serialization::ResourceProxy

Inherits:
Resource::Proxy show all
Includes:
Resource
Defined in:
lib/doze/serialization/resource_proxy.rb

Instance Attribute Summary

Attributes inherited from Resource::Proxy

#target

Attributes included from Resource

#uri

Instance Method Summary collapse

Methods included from Resource

#accepts_method_with_media_type?, #get

Methods inherited from Resource::Proxy

#accepts_method_with_media_type?, #authorize, #initialize, #other_method, #post, #supports_method?, #try

Methods included from Resource

#accepts_method_with_media_type?, #authorize, #cache_expiry_period, #cacheable?, #delete_resource, #exists?, #get, #last_modified, #other_method, #post, #public_cache_expiry_period, #publicly_cacheable?, #put, #supports_get?, #supports_method?, #try, #uri_object

Constructor Details

This class inherits a constructor from Doze::Resource::Proxy

Instance Method Details

#get_dataObject



11
12
13
# File 'lib/doze/serialization/resource_proxy.rb', line 11

def get_data
  target && target.get_data
end

#serialization_media_typesObject



7
8
9
# File 'lib/doze/serialization/resource_proxy.rb', line 7

def serialization_media_types
  target && target.serialization_media_types
end