Class: Ns::Api::Request::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/ns/api/request/base.rb

Direct Known Subclasses

DisruptionCollection, TravelAdvice

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Base

Returns a new instance of Base.



8
9
10
# File 'lib/ns/api/request/base.rb', line 8

def initialize(attributes = {})
  HTTPI.log = false
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



6
7
8
# File 'lib/ns/api/request/base.rb', line 6

def response
  @response
end