Sha256: 6990e3a9ab8e88e508fa7d9b3cfa73d1f257133326417c066c45088567551f56

Contents?: true

Size: 666 Bytes

Versions: 19

Compression:

Stored size: 666 Bytes

Contents

class CityGrid
  class API
    class Accounts
      class User < Accounts
        include CityGrid::API::Mutable
        include CityGrid::API::Searchable
        
        def self.login options = {}
          request_and_handle :post,
            "#{endpoint}/login",
            :query => options,
            :headers => merge_headers()
        end
        
        # login behaves weird right now - expects string as body, not json encoded. 
        # define_action :login, :post, "login", :auth_token => false, :format => false        
        
        define_action :validate, :get, "validate", :auth_token => true, :format => false
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
citygrid_api-0.0.26 lib/citygrid/api/accounts/user.rb
citygrid_api-0.0.25 lib/citygrid/api/accounts/user.rb
citygrid_api-0.0.24 lib/citygrid/api/accounts/user.rb
citygrid_api-0.0.23 lib/citygrid/api/accounts/user.rb
citygrid_api-0.0.22 lib/citygrid/api/accounts/user.rb
citygrid_api-0.0.21 lib/citygrid/api/accounts/user.rb
citygrid_api-0.0.20 lib/citygrid/api/accounts/user.rb
citygrid_api-0.0.19 lib/citygrid/api/accounts/user.rb
citygrid_api-0.0.18 lib/citygrid/api/accounts/user.rb
citygrid_api-0.0.17 lib/citygrid/api/accounts/user.rb
citygrid_api-0.0.16 lib/citygrid/api/accounts/user.rb
citygrid_api-0.0.15 lib/citygrid/api/accounts/user.rb
citygrid_api-0.0.14 lib/citygrid/api/accounts/user.rb
citygrid_api-0.0.13 lib/citygrid/api/accounts/user.rb
citygrid_api-0.0.12 lib/citygrid/api/accounts/user.rb
citygrid_api-0.0.11 lib/citygrid/api/accounts/user.rb
citygrid_api-0.0.10 lib/citygrid/api/accounts/user.rb
citygrid_api-0.0.9 lib/citygrid/api/accounts/user.rb
citygrid_api-0.0.7 lib/citygrid/api/accounts/user.rb