Class: ReactOnRailsPro::RendererArtifact::InlineCompanion
- Inherits:
-
Data
- Object
- Data
- ReactOnRailsPro::RendererArtifact::InlineCompanion
- Defined in:
- lib/react_on_rails_pro/renderer_artifact.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url:, body:) ⇒ InlineCompanion
constructor
A new instance of InlineCompanion.
- #inline? ⇒ Boolean
- #to_s ⇒ Object
Constructor Details
#initialize(url:, body:) ⇒ InlineCompanion
Returns a new instance of InlineCompanion.
42 43 44 |
# File 'lib/react_on_rails_pro/renderer_artifact.rb', line 42 def initialize(url:, body:) super(url: url.to_s.freeze, body: body.to_s.b.freeze) end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body
41 42 43 |
# File 'lib/react_on_rails_pro/renderer_artifact.rb', line 41 def body @body end |
#url ⇒ Object (readonly)
Returns the value of attribute url
41 42 43 |
# File 'lib/react_on_rails_pro/renderer_artifact.rb', line 41 def url @url end |
Instance Method Details
#inline? ⇒ Boolean
46 47 48 |
# File 'lib/react_on_rails_pro/renderer_artifact.rb', line 46 def inline? true end |
#to_s ⇒ Object
50 51 52 |
# File 'lib/react_on_rails_pro/renderer_artifact.rb', line 50 def to_s url end |