Class: Pennyworth::Models::HTTPStatus

Inherits:
Data
  • Object
show all
Defined in:
lib/pennyworth/models/http_status.rb

Overview

Defines HTTP status details.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codeObject (readonly)

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



6
7
8
# File 'lib/pennyworth/models/http_status.rb', line 6

def code
  @code
end

#labelObject (readonly)

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



6
7
8
# File 'lib/pennyworth/models/http_status.rb', line 6

def label
  @label
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



6
7
8
# File 'lib/pennyworth/models/http_status.rb', line 6

def url
  @url
end