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