Module: OCTranspo::MobileResourceMethods
Instance Method Summary
collapse
#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_options ⇒ Object
16
17
18
|
# File 'lib/octranspo/mobile_resource_methods.rb', line 16
def default_options
{:index => 0, :date => Date.current}
end
|
#site ⇒ Object
8
9
10
|
# File 'lib/octranspo/mobile_resource_methods.rb', line 8
def site
"http://www.octranspo.com/mobileweb"
end
|