class Microsoft::Graph::JSONStruct
Public Class Methods
format(key)
click to toggle source
# File lib/microsoft/graph.rb, line 101 def self.format(key) HTTParty::Response.underscore(key.to_s).to_sym end
new(hash = {})
click to toggle source
Calls superclass method
# File lib/microsoft/graph.rb, line 105 def initialize(hash = {}) super nil hash.each do |key, value| self[key] = value end end
Public Instance Methods
[]=(key, value)
click to toggle source
Calls superclass method
# File lib/microsoft/graph.rb, line 112 def []=(key, value) formatted_key = self.class.format(key) super formatted_key, value end