Class: Pennyworth::Models::HTTPStatus
- Inherits:
-
Data
- Object
- Data
- Pennyworth::Models::HTTPStatus
- Defined in:
- lib/pennyworth/models/http_status.rb
Overview
Defines HTTP status details.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(code: nil, label: nil, url: nil) ⇒ HTTPStatus
constructor
A new instance of HTTPStatus.
Constructor Details
#initialize(code: nil, label: nil, url: nil) ⇒ HTTPStatus
Returns a new instance of HTTPStatus.
7 8 9 |
# File 'lib/pennyworth/models/http_status.rb', line 7 def initialize code: nil, label: nil, url: nil super end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code
6 7 8 |
# File 'lib/pennyworth/models/http_status.rb', line 6 def code @code end |
#label ⇒ Object (readonly)
Returns the value of attribute label
6 7 8 |
# File 'lib/pennyworth/models/http_status.rb', line 6 def label @label end |
#url ⇒ Object (readonly)
Returns the value of attribute url
6 7 8 |
# File 'lib/pennyworth/models/http_status.rb', line 6 def url @url end |