Class: TwitterJekyll::ErrorResponse Private

Inherits:
Struct
  • Object
show all
Defined in:
lib/jekyll-twitter-plugin-2.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



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

def message
  @message
end

#requestObject

Returns the value of attribute request

Returns:

  • (Object)

    the current value of request



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

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.



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

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.



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

def to_h
  { html: html }
end