Class: Envjs::Net::File::Response
- Inherits:
-
Object
- Object
- Envjs::Net::File::Response
- Defined in:
- lib/envjs/net/file.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
- #[](*args) ⇒ Object
- #each(&block) ⇒ Object
- #getContentEncoding ⇒ Object
- #getHeaderFields ⇒ Object
- #getInputStream ⇒ Object
- #getResponseCode ⇒ Object
-
#initialize(path) ⇒ Response
constructor
A new instance of Response.
Constructor Details
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
65 66 67 |
# File 'lib/envjs/net/file.rb', line 65 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
65 66 67 |
# File 'lib/envjs/net/file.rb', line 65 def code @code end |
Instance Method Details
#[](*args) ⇒ Object
41 42 43 |
# File 'lib/envjs/net/file.rb', line 41 def [] *args nil end |
#each(&block) ⇒ Object
45 46 |
# File 'lib/envjs/net/file.rb', line 45 def each &block end |
#getContentEncoding ⇒ Object
52 53 54 |
# File 'lib/envjs/net/file.rb', line 52 def getContentEncoding nil end |
#getHeaderFields ⇒ Object
48 49 50 |
# File 'lib/envjs/net/file.rb', line 48 def getHeaderFields [] end |
#getInputStream ⇒ Object
61 62 63 |
# File 'lib/envjs/net/file.rb', line 61 def getInputStream self end |
#getResponseCode ⇒ Object
56 57 58 |
# File 'lib/envjs/net/file.rb', line 56 def getResponseCode @file.nil? ? 404 : 200; end |