Sha256: adc03f65b51afffe3f80b87f790f21737737778d1d9d26229b2d03cf2e316ac5
Contents?: true
Size: 648 Bytes
Versions: 1
Compression:
Stored size: 648 Bytes
Contents
module Lanyrd class Client def search(query) get "search/?q=#{query}" end def popular get "popular/" end def event(id) get "event/#{id}/" end def speakers(event_id) get "speakers/#{event_id}/" end def attendees(event_id) get "attendees/#{event_id}/" end def get(path) response = conenction.get path decode response.body end def decode(data) plist = CFPropertyList::List.new(:data => data) CFPropertyList.native_types(plist.value) end def conenction Faraday.new(:url => 'http://lanyrd.com/mobile/ios/') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lanyrd-0.0.1 | lib/lanyrd/client.rb |