Module: Ns

Defined in:
lib/ns.rb,
lib/ns/trip.rb,
lib/version.rb,
lib/ns/model.rb,
lib/ns/station.rb,
lib/ns/disruption.rb,
lib/ns/configuration.rb,
lib/ns/travel_option.rb,
lib/ns/api/request/base.rb,
lib/ns/api/response/parser.rb,
lib/ns/disruption_collection.rb,
lib/ns/api/request/travel_advice.rb,
lib/ns/api/response/travel_advice.rb,
lib/ns/api/request/disruption_collection.rb,
lib/ns/api/response/disruption_collection.rb

Defined Under Namespace

Modules: Api, Model Classes: Configuration, Disruption, DisruptionCollection, Station, TravelOption, Trip

Constant Summary collapse

VERSION =
'0.3'

Class Method Summary collapse

Class Method Details

.configurationObject



24
25
26
# File 'lib/ns.rb', line 24

def configuration
  @configuration ||= Ns::Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



20
21
22
# File 'lib/ns.rb', line 20

def configure
  yield configuration
end