Class: Nous::FetchRecord

Inherits:
Data
  • Object
show all
Defined in:
lib/nous/primitives/fetch_record.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of 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

Returns:

  • (Object) —

    the current value of requested_url



4
5
6
# File 'lib/nous/primitives/fetch_record.rb', line 4

def requested_url
  @requested_url
end