Sha256: 603ee40ee28ba877533751f2da3995bb6a53bdf1af0fe8abf77d413a18ee98f5
Contents?: true
Size: 822 Bytes
Versions: 8
Compression:
Stored size: 822 Bytes
Contents
module Whatser class CheckIn < Whatser::Resource attr_accessor :id,:user_id,:poi_id attr_accessor :name,:lat,:lng,:check_in_at,:check_out_at,:rating,:message attr_accessor :locate_user, :gowalla_share, :foursquare_share class << self def list(opts={}) api_request :get, "/api/check_ins", {:query => opts} end def create(poi_id, params={}) api_request :post, "/api/poi/#{poi_id}/check_ins", {:body => {'check_in' => params} } end end def save self.class.create( self.poi_id, self.to_params ) end def to_params {:lat => lat, :lng => lng, :locate => locate_user, :gowalla => gowalla_share, :foursquare => foursquare_share, :check_in_at => check_in_at, :check_out_at => check_out_at} end end end
Version data entries
8 entries across 8 versions & 1 rubygems