Class: TwitterJekyll::ErrorResponse Private

Inherits:
Struct
  • Object
show all
Defined in:
lib/jekyll-twitter-plugin.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



97
98
99
# File 'lib/jekyll-twitter-plugin.rb', line 97

def message
  @message
end

#requestObject

Returns the value of attribute request

Returns:

  • (Object)

    the current value of request



97
98
99
# File 'lib/jekyll-twitter-plugin.rb', line 97

def request
  @request
end

Instance Method Details

#htmlObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



98
99
100
# File 'lib/jekyll-twitter-plugin.rb', line 98

def html
  "<p>There was a '#{message}' error fetching URL: '#{request.entity_url}'</p>"
end

#to_hObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



102
103
104
# File 'lib/jekyll-twitter-plugin.rb', line 102

def to_h
  { html: html }
end