Class: GmailOAuth::Request
- Inherits:
-
Object
- Object
- GmailOAuth::Request
- Defined in:
- lib/gmail-oauth/request.rb
Instance Method Summary collapse
-
#initialize(email_address, access_token, consumer, service = :imap) ⇒ Request
constructor
A new instance of Request.
- #request ⇒ Object
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
#request ⇒ Object
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 |