Class: Renderful::Component::Base
- Inherits:
-
Object
- Object
- Renderful::Component::Base
- Defined in:
- lib/renderful/component/base.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#entry ⇒ Object
readonly
Returns the value of attribute entry.
Instance Method Summary collapse
-
#initialize(entry:, client:) ⇒ Base
constructor
A new instance of Base.
- #render ⇒ Object
Constructor Details
#initialize(entry:, client:) ⇒ Base
Returns a new instance of Base.
8 9 10 11 |
# File 'lib/renderful/component/base.rb', line 8 def initialize(entry:, client:) @entry = entry @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
6 7 8 |
# File 'lib/renderful/component/base.rb', line 6 def client @client end |
#entry ⇒ Object (readonly)
Returns the value of attribute entry.
6 7 8 |
# File 'lib/renderful/component/base.rb', line 6 def entry @entry end |
Instance Method Details
#render ⇒ Object
13 14 15 |
# File 'lib/renderful/component/base.rb', line 13 def render fail NotImplementedError end |