Class: Lightrail::LightrailResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/lightrail_client/lightrail_response_objects.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (readonly)

Returns the value of attribute body.



3
4
5
# File 'lib/lightrail_client/lightrail_response_objects.rb', line 3

def body
  @body
end

#limitObject (readonly)

Returns the value of attribute limit.



3
4
5
# File 'lib/lightrail_client/lightrail_response_objects.rb', line 3

def limit
  @limit
end

Returns the value of attribute links.



3
4
5
# File 'lib/lightrail_client/lightrail_response_objects.rb', line 3

def links
  @links
end

#max_limitObject (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

#statusObject (readonly)

Returns the value of attribute status.



3
4
5
# File 'lib/lightrail_client/lightrail_response_objects.rb', line 3

def status
  @status
end

#textObject (readonly)

Returns the value of attribute text.



3
4
5
# File 'lib/lightrail_client/lightrail_response_objects.rb', line 3

def text
  @text
end