Class: Grape::Entity::Delegator::Base
- Inherits:
-
Object
- Object
- Grape::Entity::Delegator::Base
- Defined in:
- lib/grape_entity/delegator/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
- #delegatable?(_attribute) ⇒ Boolean
-
#initialize(object) ⇒ Base
constructor
A new instance of Base.
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
#object ⇒ Object (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 |