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



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

def message
  @message
end

#requestObject

Returns the value of attribute request

Returns:

  • (Object)

    the current value of request



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

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.



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

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.



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

def to_h
  { html: html }
end