Class: Office365::Models::Base
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Office365::Models::Base
- Defined in:
- lib/office365/models/concerns/base.rb
Direct Known Subclasses
AccessToken, Calendar, Contact, Directory, EmailAddress, Event, Mailbox, Owner, Subscription, User
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(response = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(response = {}) ⇒ Base
Returns a new instance of Base.
8 9 10 |
# File 'lib/office365/models/concerns/base.rb', line 8 def initialize(response = {}) super(response.transform_keys(&:rails_underscore)) end |
Instance Method Details
#as_json ⇒ Object
12 13 14 |
# File 'lib/office365/models/concerns/base.rb', line 12 def as_json to_h end |