class Beaver::TokensResponse
TokensResponse
Model.
Attributes
api_version[RW]
Owner structure to be used in any resource where an application is the owner @return [String]
create_time[RW]
TODO: Write general description for this method @return [Integer]
expire_time[RW]
TODO: Write general description for this method @return [Integer]
id[RW]
The generated token id. @return [String]
owner[RW]
Owner structure to be used in any resource where an application is the owner @return [Owner20]
path[RW]
Owner structure to be used in any resource where an application is the owner @return [String]
resource[RW]
Owner structure to be used in any resource where an application is the owner @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/tokens_response.rb, line 71 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. create_time = hash['create_time'] expire_time = hash['expire_time'] id = hash['id'] owner = Owner20.from_hash(hash['owner']) if hash['owner'] resource = hash['resource'] path = hash['path'] api_version = hash['api_version'] # Create object from extracted values. TokensResponse.new(create_time, expire_time, id, owner, resource, path, api_version) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/beaver/models/tokens_response.rb, line 42 def self.names @_hash = {} if @_hash.nil? @_hash['create_time'] = 'create_time' @_hash['expire_time'] = 'expire_time' @_hash['id'] = 'id' @_hash['owner'] = 'owner' @_hash['path'] = 'path' @_hash['resource'] = 'resource' @_hash['api_version'] = 'api_version' @_hash end
new(create_time = nil, expire_time = nil, id = nil, owner = nil, resource = nil, path = nil, api_version = nil)
click to toggle source
# File lib/beaver/models/tokens_response.rb, line 54 def initialize(create_time = nil, expire_time = nil, id = nil, owner = nil, resource = nil, path = nil, api_version = nil) @create_time = create_time @expire_time = expire_time @id = id @owner = owner @path = path @resource = resource @api_version = api_version end