Module: OCTranspo::MobileResourceMethods

Includes:
RemoteResourceMethods
Included in:
MobileRouteData, MobileRouteSchedule, MobileStopSchedule
Defined in:
lib/octranspo/mobile_resource_methods.rb

Instance Method Summary collapse

Methods included from RemoteResourceMethods

#cache, #cache_path, #cache_path_for, #create_fixture, #fixture_path_for, #fixtures_path, #logger, #path_for, #read, #read_from_cache, #read_from_fixture, #read_from_remote, #reset!, #url_for, #use_fixtures!

Instance Method Details

#date_stamp(date) ⇒ Object



12
13
14
# File 'lib/octranspo/mobile_resource_methods.rb', line 12

def date_stamp (date)
  date.strftime("%Y%m%d")
end

#default_optionsObject



16
17
18
# File 'lib/octranspo/mobile_resource_methods.rb', line 16

def default_options
  {:index => 0, :date => Date.current}
end

#siteObject



8
9
10
# File 'lib/octranspo/mobile_resource_methods.rb', line 8

def site
  "http://www.octranspo.com/mobileweb"
end