Class: Line::Bot::Operation::Base
- Inherits:
-
Object
- Object
- Line::Bot::Operation::Base
- Defined in:
- lib/line/bot/operation/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#attrs ⇒ Object
readonly
Returns the value of attribute attrs.
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(attrs = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(attrs = {}) ⇒ Base
Returns a new instance of Base.
7 8 9 |
# File 'lib/line/bot/operation/base.rb', line 7 def initialize(attrs = {}) @attrs = attrs end |
Instance Attribute Details
#attrs ⇒ Object (readonly)
Returns the value of attribute attrs.
5 6 7 |
# File 'lib/line/bot/operation/base.rb', line 5 def attrs @attrs end |
Instance Method Details
#[](key) ⇒ Object
11 12 13 |
# File 'lib/line/bot/operation/base.rb', line 11 def [](key) @attrs[key] end |