class Tsumamigui::Response

Attributes

charset[R]

charset of fetched html

html[R]

fetched html

url[R]

request url

Public Class Methods

new(url, html, charset) click to toggle source

@param [String] url @param [String] html @param [String] charset

# File lib/tsumamigui/response.rb, line 13
def initialize(url, html, charset)
  @url = url
  @html = html
  @charset = charset
end

Public Instance Methods

to_array() click to toggle source

Convert request data to array @return [Array] [url, html, charset]

# File lib/tsumamigui/response.rb, line 21
def to_array
  [@url, @html, @charset]
end