Class: GmailOAuth::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/gmail-oauth/request.rb

Instance Method Summary collapse

Constructor Details

#initialize(email_address, access_token, consumer, service = :imap) ⇒ Request

Returns a new instance of Request.



3
4
5
6
7
8
# File 'lib/gmail-oauth/request.rb', line 3

def initialize(email_address, access_token, consumer, service = :imap)
  @email_address  = email_address
  @consumer       = consumer
  @access_token   = access_token
  @service        = service
end

Instance Method Details

#requestObject



10
11
12
13
14
15
16
# File 'lib/gmail-oauth/request.rb', line 10

def request
  {
    "uri"     => request_uri,
    "parameters" => parameters,
    "method" => "GET"
  }
end