Class: Office365::REST::Client

Inherits:
Client
  • Object
show all
Includes:
API
Defined in:
lib/office365/rest/client.rb

Constant Summary

Constants included from Event

Event::BASE_URI, Event::CALENDARVIEW_URL

Instance Attribute Summary collapse

Attributes inherited from Client

#access_token, #client_id, #client_secret, #debug, #redirect_uri, #refresh_token, #tenant_id

Instance Method Summary collapse

Methods included from Subscription

#create_subscription, #renew_subscription

Methods included from Token

#authorize_url, #refresh_token!, #token_url

Methods included from Contact

#contacts

Methods included from Event

#event, #events

Methods included from Calendar

#calendars

Methods included from Mailbox

#messages

Methods included from User

#me

Methods inherited from Client

#credentials, #initialize, #user_token?

Constructor Details

This class inherits a constructor from Office365::Client

Instance Attribute Details

#bearer_tokenObject

Returns the value of attribute bearer_token.



14
15
16
# File 'lib/office365/rest/client.rb', line 14

def bearer_token
  @bearer_token
end

Instance Method Details

#bearer_token?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/office365/rest/client.rb', line 17

def bearer_token?
  !!bearer_token
end

#credentials?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/office365/rest/client.rb', line 22

def credentials?
  super || bearer_token?
end