Class: HeyYou::Builder::Base
- Inherits:
-
Object
- Object
- HeyYou::Builder::Base
- Defined in:
- lib/hey_you/builder/_base.rb
Defined Under Namespace
Classes: InterpolationError
Instance Attribute Summary collapse
-
#data ⇒ Object
(also: #ch_data)
readonly
Returns the value of attribute data.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(data, key, **options) ⇒ Base
constructor
A new instance of Base.
- #to_hash ⇒ Object (also: #to_h)
Constructor Details
#initialize(data, key, **options) ⇒ Base
Returns a new instance of Base.
6 7 8 9 10 11 |
# File 'lib/hey_you/builder/_base.rb', line 6 def initialize(data, key, **) @data = data @key = key @options = build end |
Instance Attribute Details
#data ⇒ Object (readonly) Also known as: ch_data
Returns the value of attribute data.
4 5 6 |
# File 'lib/hey_you/builder/_base.rb', line 4 def data @data end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
4 5 6 |
# File 'lib/hey_you/builder/_base.rb', line 4 def key @key end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/hey_you/builder/_base.rb', line 4 def @options end |
Instance Method Details
#to_hash ⇒ Object Also known as: to_h
13 14 15 |
# File 'lib/hey_you/builder/_base.rb', line 13 def to_hash raise NotImplementedError, 'Builder not implemented #to_hash method' end |