Class: Renderful::Component::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/renderful/component/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#clientObject (readonly)

Returns the value of attribute client.



6
7
8
# File 'lib/renderful/component/base.rb', line 6

def client
  @client
end

#entryObject (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

#renderObject



13
14
15
# File 'lib/renderful/component/base.rb', line 13

def render
  fail NotImplementedError
end