Class: TwitterJekyll::ErrorResponse
- Inherits:
-
Object
- Object
- TwitterJekyll::ErrorResponse
- Defined in:
- lib/jekyll-twitter-plugin.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
Instance Method Summary collapse
- #html ⇒ Object
-
#initialize(error) ⇒ ErrorResponse
constructor
A new instance of ErrorResponse.
- #to_h ⇒ Object
Constructor Details
#initialize(error) ⇒ ErrorResponse
Returns a new instance of ErrorResponse.
138 139 140 |
# File 'lib/jekyll-twitter-plugin.rb', line 138 def initialize(error) @error = error end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
136 137 138 |
# File 'lib/jekyll-twitter-plugin.rb', line 136 def error @error end |
Instance Method Details
#html ⇒ Object
142 143 144 |
# File 'lib/jekyll-twitter-plugin.rb', line 142 def html "<p>#{@error}</p>" end |
#to_h ⇒ Object
146 147 148 |
# File 'lib/jekyll-twitter-plugin.rb', line 146 def to_h { html: html } end |