Class: Mechanize::FileRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/mechanize/file_request.rb

Overview

A wrapper for a file URI that makes a request that works like a Net::HTTPRequest

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri) ⇒ FileRequest

Returns a new instance of FileRequest.



9
10
11
# File 'lib/mechanize/file_request.rb', line 9

def initialize uri
  @uri = uri
end

Instance Attribute Details

#uriObject

Returns the value of attribute uri.



7
8
9
# File 'lib/mechanize/file_request.rb', line 7

def uri
  @uri
end

Instance Method Details

#add_field(*a) ⇒ Object Also known as: []=



13
14
# File 'lib/mechanize/file_request.rb', line 13

def add_field *a
end

#each_headerObject



22
23
# File 'lib/mechanize/file_request.rb', line 22

def each_header
end

#pathObject



18
19
20
# File 'lib/mechanize/file_request.rb', line 18

def path
  @uri.path
end