Sha256: e274109d397171498546f13c95c23615a24aa30f769f5bfbce980fdcbcb2964d

Contents?: true

Size: 478 Bytes

Versions: 1

Compression:

Stored size: 478 Bytes

Contents

class CityGrid
  class API
    class Accounts
      class Login < Accounts
        def self.login options = {}
          if endpoint.blank? and base_uri.blank?
            endpoint = CityGrid::API::Accounts::User.endpoint
            base_uri = CityGrid::API::Accounts::User.base_uri
          end
          request_and_handle :post,
            "#{endpoint}/login",
            :query => options,
            :headers => merge_headers()
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
citygrid_api-0.0.28 lib/citygrid/api/accounts/login.rb