class Grape::Entity::Delegator::PlainObject
Public Instance Methods
delegatable?(attribute)
click to toggle source
# File lib/grape_entity/delegator/plain_object.rb, line 11 def delegatable?(attribute) object.respond_to? attribute, true end
delegate(attribute)
click to toggle source
# File lib/grape_entity/delegator/plain_object.rb, line 7 def delegate(attribute) object.send attribute end