Class: Office365::Models::Base

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/office365/models/concerns/base.rb

Instance Method Summary collapse

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_jsonObject



12
13
14
# File 'lib/office365/models/concerns/base.rb', line 12

def as_json
  to_h
end