Exception: DAV4Rack::HTTPStatus::Status

Inherits:
Exception
  • Object
show all
Defined in:
lib/dav4rack/http_status.rb

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Attribute Details

.codeObject

Returns the value of attribute code.



8
9
10
# File 'lib/dav4rack/http_status.rb', line 8

def code
  @code
end

.reason_phraseObject

Returns the value of attribute reason_phrase.



8
9
10
# File 'lib/dav4rack/http_status.rb', line 8

def reason_phrase
  @reason_phrase
end

Class Method Details

.status_lineObject



11
12
13
# File 'lib/dav4rack/http_status.rb', line 11

def status_line
  "#{code} #{reason_phrase}"
end

.to_iObject

Returns the value of attribute code.



9
10
11
# File 'lib/dav4rack/http_status.rb', line 9

def code
  @code
end

Instance Method Details

#codeObject



17
18
19
# File 'lib/dav4rack/http_status.rb', line 17

def code
  self.class.code
end

#reason_phraseObject



21
22
23
# File 'lib/dav4rack/http_status.rb', line 21

def reason_phrase
  self.class.reason_phrase
end

#status_lineObject



25
26
27
# File 'lib/dav4rack/http_status.rb', line 25

def status_line
  self.class.status_line
end

#to_iObject



29
30
31
# File 'lib/dav4rack/http_status.rb', line 29

def to_i
  self.class.to_i
end