Sha256: 17d81f9d0e93e2859955da7a9456504b22b286ac38fd97a8d44f9b45c4a9922c

Contents?: true

Size: 425 Bytes

Versions: 8

Compression:

Stored size: 425 Bytes

Contents

module Whatser
  class City < Whatser::Resource
    attr_accessor :name,:count
    alias :collections_count :count
    
    class << self
      def mine(params={})
        api_request :get, "/api/users/me/black/book/cities", {:query => params}
      end
      
      def user(user_id, params={})
        api_request :get, "/api/users/#{user_id}/black/book/cities", {:query => params}
      end        
    end      
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
whatser-0.6.1 lib/whatser/resources/city.rb
whatser-0.6.0 lib/whatser/resources/city.rb
whatser-0.5.0 lib/whatser/resources/city.rb
whatser-0.4.0 lib/whatser/resources/city.rb
whatser-0.3.2 lib/whatser/resources/city.rb
whatser-0.3.1 lib/whatser/resources/city.rb
whatser-0.3.0 lib/whatser/resources/city.rb
whatser-0.2.0 lib/whatser/resources/city.rb