class Beaver::NotificationPreferencesRequest

NotificationPreferencesRequest Model.

Attributes

callback_uri[RW]

TODO: Write general description for this method @return [String]

topic[RW]

TODO: Write general description for this method @return [Topic1Enum]

Public Class Methods

from_hash(hash) click to toggle source

Creates an instance of the object from a hash.

# File lib/beaver/models/notification_preferences_request.rb, line 32
def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  callback_uri = hash['callback_uri']
  topic = hash['topic']

  # Create object from extracted values.
  NotificationPreferencesRequest.new(callback_uri,
                                     topic)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/beaver/models/notification_preferences_request.rb, line 18
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['callback_uri'] = 'callback_uri'
  @_hash['topic'] = 'topic'
  @_hash
end
new(callback_uri = nil, topic = nil) click to toggle source
# File lib/beaver/models/notification_preferences_request.rb, line 25
def initialize(callback_uri = nil,
               topic = nil)
  @callback_uri = callback_uri
  @topic = topic
end