Class: Grape::Entity::Delegator::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/grape_entity/delegator/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ Base



7
8
9
# File 'lib/grape_entity/delegator/base.rb', line 7

def initialize(object)
  @object = object
end

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



5
6
7
# File 'lib/grape_entity/delegator/base.rb', line 5

def object
  @object
end

Instance Method Details

#delegatable?(_attribute) ⇒ Boolean



11
12
13
# File 'lib/grape_entity/delegator/base.rb', line 11

def delegatable?(_attribute)
  true
end