class Beaver::NotificationsResponse1
NotificationsResponse1
Model.
Attributes
api_version[RW]
TODO: Write general description for this method @return [String]
event_time[RW]
TODO: Write general description for this method @return [Integer]
id[RW]
TODO: Write general description for this method @return [String]
owner[RW]
TODO: Write general description for this method @return [OwnerApplications]
path[RW]
TODO: Write general description for this method @return [String]
payload[RW]
TODO: Write general description for this method @return [Object]
resource[RW]
TODO: Write general description for this method @return [String]
topic[RW]
TODO: Write general description for this method @return [String]
Public Class Methods
from_hash(hash)
click to toggle source
Creates an instance of the object from a hash.
# File lib/beaver/models/notifications_response1.rb, line 74 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. event_time = hash['event_time'] id = hash['id'] owner = OwnerApplications.from_hash(hash['owner']) if hash['owner'] path = hash['path'] payload = hash['payload'] resource = hash['resource'] topic = hash['topic'] api_version = hash['api_version'] # Create object from extracted values. NotificationsResponse1.new(event_time, id, owner, path, payload, resource, topic, api_version) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/beaver/models/notifications_response1.rb, line 42 def self.names @_hash = {} if @_hash.nil? @_hash['event_time'] = 'event_time' @_hash['id'] = 'id' @_hash['owner'] = 'owner' @_hash['path'] = 'path' @_hash['payload'] = 'payload' @_hash['resource'] = 'resource' @_hash['topic'] = 'topic' @_hash['api_version'] = 'api_version' @_hash end
new(event_time = nil, id = nil, owner = nil, path = nil, payload = nil, resource = nil, topic = nil, api_version = nil)
click to toggle source
# File lib/beaver/models/notifications_response1.rb, line 55 def initialize(event_time = nil, id = nil, owner = nil, path = nil, payload = nil, resource = nil, topic = nil, api_version = nil) @event_time = event_time @id = id @owner = owner @path = path @payload = payload @resource = resource @topic = topic @api_version = api_version end