Class: Tsumamigui::Response
- Inherits:
-
Object
- Object
- Tsumamigui::Response
- Defined in:
- lib/tsumamigui/response.rb
Instance Attribute Summary collapse
-
#charset ⇒ Object
readonly
Returns the value of attribute charset.
-
#html ⇒ Object
readonly
Returns the value of attribute html.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, html, charset) ⇒ Response
constructor
A new instance of Response.
- #to_array ⇒ Array
Constructor Details
#initialize(url, html, charset) ⇒ Response
Returns a new instance of 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
#charset ⇒ Object (readonly)
Returns the value of attribute charset.
5 6 7 |
# File 'lib/tsumamigui/response.rb', line 5 def charset @charset end |
#html ⇒ Object (readonly)
Returns the value of attribute html.
4 5 6 |
# File 'lib/tsumamigui/response.rb', line 4 def html @html end |
#url ⇒ Object (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_array ⇒ Array
17 18 19 |
# File 'lib/tsumamigui/response.rb', line 17 def to_array [@url, @html, @charset] end |