Class: Ns::Api::Request::TravelAdvice

Inherits:
Base
  • Object
show all
Includes:
Model
Defined in:
lib/ns/api/request/travel_advice.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#response

Class Method Summary collapse

Methods included from Model

#initialize

Methods inherited from Base

#initialize

Instance Attribute Details

#tripObject

Returns the value of attribute trip.



7
8
9
# File 'lib/ns/api/request/travel_advice.rb', line 7

def trip
  @trip
end

Class Method Details

.base_uriObject



9
10
11
# File 'lib/ns/api/request/travel_advice.rb', line 9

def self.base_uri
  'http://webservices.ns.nl/ns-api-treinplanner'
end

.response_classObject



13
14
15
# File 'lib/ns/api/request/travel_advice.rb', line 13

def self.response_class
  Ns::Api::Response::TravelAdvice
end