# File 'lib/awesm/stats.rb', line 5defself.range(options)response=Awesm.http_client.get"#{Awesm::HOST}#{PATH}/range.json",{:v=>3}.merge(options)json=JSON.parseresponse.contentnew(json)end
.url(options) ⇒ Object
11
12
13
14
15
16
# File 'lib/awesm/stats.rb', line 11defself.url(options)awesm_id=options.delete(:awesm_id)response=Awesm.http_client.get"#{Awesm::HOST}#{PATH}/#{awesm_id}.json",{:v=>3}.merge(options)json=JSON.parseresponse.contentnew(json)end