Class: Nous::FetchRecord
- Inherits:
-
Data
- Object
- Data
- Nous::FetchRecord
- Defined in:
- lib/nous/primitives/fetch_record.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#final_url ⇒ Object
readonly
Returns the value of attribute final_url.
-
#html ⇒ Object
readonly
Returns the value of attribute html.
-
#ok ⇒ Object
readonly
Returns the value of attribute ok.
-
#pathname ⇒ Object
readonly
Returns the value of attribute pathname.
-
#redirected ⇒ Object
readonly
Returns the value of attribute redirected.
-
#requested_url ⇒ Object
readonly
Returns the value of attribute requested_url.
Instance Method Summary collapse
-
#initialize(requested_url:, pathname:, final_url: nil, html: nil, content_type: nil, ok: true, error: nil, redirected: false) ⇒ FetchRecord
constructor
A new instance of FetchRecord.
Constructor Details
#initialize(requested_url:, pathname:, final_url: nil, html: nil, content_type: nil, ok: true, error: nil, redirected: false) ⇒ FetchRecord
Returns a new instance of FetchRecord.
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/nous/primitives/fetch_record.rb', line 14 def initialize( requested_url:, pathname:, final_url: nil, html: nil, content_type: nil, ok: true, error: nil, redirected: false ) super end |
Instance Attribute Details
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type
4 5 6 |
# File 'lib/nous/primitives/fetch_record.rb', line 4 def content_type @content_type end |
#error ⇒ Object (readonly)
Returns the value of attribute error
4 5 6 |
# File 'lib/nous/primitives/fetch_record.rb', line 4 def error @error end |
#final_url ⇒ Object (readonly)
Returns the value of attribute final_url
4 5 6 |
# File 'lib/nous/primitives/fetch_record.rb', line 4 def final_url @final_url end |
#html ⇒ Object (readonly)
Returns the value of attribute html
4 5 6 |
# File 'lib/nous/primitives/fetch_record.rb', line 4 def html @html end |
#ok ⇒ Object (readonly)
Returns the value of attribute ok
4 5 6 |
# File 'lib/nous/primitives/fetch_record.rb', line 4 def ok @ok end |
#pathname ⇒ Object (readonly)
Returns the value of attribute pathname
4 5 6 |
# File 'lib/nous/primitives/fetch_record.rb', line 4 def pathname @pathname end |
#redirected ⇒ Object (readonly)
Returns the value of attribute redirected
4 5 6 |
# File 'lib/nous/primitives/fetch_record.rb', line 4 def redirected @redirected end |
#requested_url ⇒ Object (readonly)
Returns the value of attribute requested_url
4 5 6 |
# File 'lib/nous/primitives/fetch_record.rb', line 4 def requested_url @requested_url end |