Method: IntegrationApi::PageWebhook#to_hash

Defined in:
lib/integration_api/models/page_webhook.rb

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



231
232
233
234
235
236
237
238
# File 'lib/integration_api/models/page_webhook.rb', line 231

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    hash[param] = _to_hash(value)
  end
  hash
end