class Beaver::CapabilitiesResp
CapabilitiesResp
Model.
Attributes
api_version[RW]
TODO: Write general description for this method @return [String]
id[RW]
TODO: Write general description for this method @return [String]
owner[RW]
TODO: Write general description for this method @return [OwnerAccounts]
path[RW]
TODO: Write general description for this method @return [String]
payments[RW]
TODO: Write general description for this method @return [Payments]
payouts[RW]
TODO: Write general description for this method @return [Payouts]
resource[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/capabilities_resp.rb, line 67 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. owner = OwnerAccounts.from_hash(hash['owner']) if hash['owner'] path = hash['path'] payments = Payments.from_hash(hash['payments']) if hash['payments'] payouts = Payouts.from_hash(hash['payouts']) if hash['payouts'] resource = hash['resource'] api_version = hash['api_version'] id = hash['id'] # Create object from extracted values. CapabilitiesResp.new(owner, path, payments, payouts, resource, api_version, id) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/beaver/models/capabilities_resp.rb, line 38 def self.names @_hash = {} if @_hash.nil? @_hash['id'] = 'id' @_hash['owner'] = 'owner' @_hash['path'] = 'path' @_hash['payments'] = 'payments' @_hash['payouts'] = 'payouts' @_hash['resource'] = 'resource' @_hash['api_version'] = 'api_version' @_hash end
new(owner = nil, path = nil, payments = nil, payouts = nil, resource = nil, api_version = nil, id = nil)
click to toggle source
# File lib/beaver/models/capabilities_resp.rb, line 50 def initialize(owner = nil, path = nil, payments = nil, payouts = nil, resource = nil, api_version = nil, id = nil) @id = id @owner = owner @path = path @payments = payments @payouts = payouts @resource = resource @api_version = api_version end