class OpenComponents::RenderedComponent
Wrapper object for components using the ‘rendered` rendering mode.
Public
↑ topAttributes
Public Instance Methods
load()
click to toggle source
Executes a request for the Component
against the configured registry and sets the component attributes.
Examples¶ ↑
component = OpenComponents::RenderedComponent.new('my-component') component.load # => #<OpenComponents::RenderedComponent: ... >
Returns¶ ↑
Returns the Component
with attributes set.
Calls superclass method
OpenComponents::Component#load
# File lib/opencomponents/rendered_component.rb, line 17 def load @html = response_data['html'] super end