class Layer::SingletonRelationProxy
Public Instance Methods
from_response(*args)
click to toggle source
# File lib/layer/singleton_relation_proxy.rb, line 10 def from_response(*args) resource_type.from_response(*args) end
respond_to_missing?(method, include_private = false)
click to toggle source
Calls superclass method
Layer::RelationProxy#respond_to_missing?
# File lib/layer/singleton_relation_proxy.rb, line 6 def respond_to_missing?(method, include_private = false) resource.respond_to?(method, include_private) || super end
Private Instance Methods
method_missing(method, *args, &block)
click to toggle source
Calls superclass method
Layer::RelationProxy#method_missing
# File lib/layer/singleton_relation_proxy.rb, line 16 def method_missing(method, *args, &block) if resource.respond_to?(method) resource.public_send(method, *args, &block) else super end end
resource()
click to toggle source
# File lib/layer/singleton_relation_proxy.rb, line 24 def resource @resource ||= fetch end