Class: Tsumamigui::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/tsumamigui/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, html, charset) ⇒ Response


10
11
12
13
14
# File 'lib/tsumamigui/response.rb', line 10

def initialize(url, html, charset)
  @url = url
  @html = html
  @charset = charset
end

Instance Attribute Details

#charsetObject (readonly)

Returns the value of attribute charset


5
6
7
# File 'lib/tsumamigui/response.rb', line 5

def charset
  @charset
end

#htmlObject (readonly)

Returns the value of attribute html


4
5
6
# File 'lib/tsumamigui/response.rb', line 4

def html
  @html
end

#urlObject (readonly)

Returns the value of attribute url


3
4
5
# File 'lib/tsumamigui/response.rb', line 3

def url
  @url
end

Instance Method Details

#to_arrayArray


17
18
19
# File 'lib/tsumamigui/response.rb', line 17

def to_array
  [@url, @html, @charset]
end