class Beaver::Result1

Result1 Model.

Attributes

api_version[RW]

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

callback_uri[RW]

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

create_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]

resource[RW]

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

status[RW]

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

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/result1.rb, line 81
def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  callback_uri = hash['callback_uri']
  create_time = hash['create_time']
  id = hash['id']
  path = hash['path']
  resource = hash['resource']
  status = hash['status']
  topic = hash['topic']
  owner = OwnerApplications.from_hash(hash['owner']) if hash['owner']
  api_version = hash['api_version']

  # Create object from extracted values.
  Result1.new(callback_uri,
              create_time,
              id,
              path,
              resource,
              status,
              topic,
              owner,
              api_version)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/beaver/models/result1.rb, line 46
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['callback_uri'] = 'callback_uri'
  @_hash['create_time'] = 'create_time'
  @_hash['id'] = 'id'
  @_hash['owner'] = 'owner'
  @_hash['path'] = 'path'
  @_hash['resource'] = 'resource'
  @_hash['status'] = 'status'
  @_hash['topic'] = 'topic'
  @_hash['api_version'] = 'api_version'
  @_hash
end
new(callback_uri = nil, create_time = nil, id = nil, path = nil, resource = nil, status = nil, topic = nil, owner = nil, api_version = nil) click to toggle source
# File lib/beaver/models/result1.rb, line 60
def initialize(callback_uri = nil,
               create_time = nil,
               id = nil,
               path = nil,
               resource = nil,
               status = nil,
               topic = nil,
               owner = nil,
               api_version = nil)
  @callback_uri = callback_uri
  @create_time = create_time
  @id = id
  @owner = owner
  @path = path
  @resource = resource
  @status = status
  @topic = topic
  @api_version = api_version
end