Class: Lightrail::LightrailResponse
- Inherits:
-
Object
- Object
- Lightrail::LightrailResponse
- Defined in:
- lib/lightrail_client/lightrail_response_objects.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#links ⇒ Object
readonly
Returns the value of attribute links.
-
#max_limit ⇒ Object
readonly
Returns the value of attribute max_limit.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(body, text, status, links = nil, limit = nil, max_limit = nil) ⇒ LightrailResponse
constructor
A new instance of LightrailResponse.
Constructor Details
#initialize(body, text, status, links = nil, limit = nil, max_limit = nil) ⇒ LightrailResponse
Returns a new instance of LightrailResponse.
5 6 7 8 9 10 11 12 |
# File 'lib/lightrail_client/lightrail_response_objects.rb', line 5 def initialize (body, text, status, links = nil, limit = nil, max_limit = nil) @body = body @text = text @links = links @status = status @max_limit = max_limit @limit = limit end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
3 4 5 |
# File 'lib/lightrail_client/lightrail_response_objects.rb', line 3 def body @body end |
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
3 4 5 |
# File 'lib/lightrail_client/lightrail_response_objects.rb', line 3 def limit @limit end |
#links ⇒ Object (readonly)
Returns the value of attribute links.
3 4 5 |
# File 'lib/lightrail_client/lightrail_response_objects.rb', line 3 def links @links end |
#max_limit ⇒ Object (readonly)
Returns the value of attribute max_limit.
3 4 5 |
# File 'lib/lightrail_client/lightrail_response_objects.rb', line 3 def max_limit @max_limit end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/lightrail_client/lightrail_response_objects.rb', line 3 def status @status end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
3 4 5 |
# File 'lib/lightrail_client/lightrail_response_objects.rb', line 3 def text @text end |