Class: OpenTopo::Net::Response::Headers
- Inherits:
-
Struct
- Object
- Struct
- OpenTopo::Net::Response::Headers
- Defined in:
- lib/open_topo/net/response.rb
Instance Attribute Summary collapse
-
#content_disposition ⇒ Object
Returns the value of attribute content_disposition.
-
#content_length ⇒ Object
Returns the value of attribute content_length.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#date ⇒ Object
Returns the value of attribute date.
Instance Method Summary collapse
Instance Attribute Details
#content_disposition ⇒ Object
Returns the value of attribute content_disposition
11 12 13 |
# File 'lib/open_topo/net/response.rb', line 11 def content_disposition @content_disposition end |
#content_length ⇒ Object
Returns the value of attribute content_length
11 12 13 |
# File 'lib/open_topo/net/response.rb', line 11 def content_length @content_length end |
#content_type ⇒ Object
Returns the value of attribute content_type
11 12 13 |
# File 'lib/open_topo/net/response.rb', line 11 def content_type @content_type end |
#date ⇒ Object
Returns the value of attribute date
11 12 13 |
# File 'lib/open_topo/net/response.rb', line 11 def date @date end |
Instance Method Details
#filename ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/open_topo/net/response.rb', line 12 def filename if content_disposition.nil? || !content_disposition.match?(filename_header) return nil end File.basename(content_disposition.split(filename_header).last.delete('"'), ".*") end |