class Beaver::RecoveryFailureReason
RecoveryFailureReason
Model.
Attributes
details[RW]
TODO: Write general description for this method @return [List of Detail6]
reason_code[RW]
TODO: Write general description for this method @return [ReasonCode6Enum]
reason_message[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/recovery_failure_reason.rb, line 39 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. # Parameter is an array, so we need to iterate through it details = nil unless hash['details'].nil? details = [] hash['details'].each do |structure| details << (Detail6.from_hash(structure) if structure) end end reason_code = hash['reason_code'] reason_message = hash['reason_message'] # Create object from extracted values. RecoveryFailureReason.new(details, reason_code, reason_message) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/beaver/models/recovery_failure_reason.rb, line 22 def self.names @_hash = {} if @_hash.nil? @_hash['details'] = 'details' @_hash['reason_code'] = 'reason_code' @_hash['reason_message'] = 'reason_message' @_hash end
new(details = nil, reason_code = nil, reason_message = nil)
click to toggle source
# File lib/beaver/models/recovery_failure_reason.rb, line 30 def initialize(details = nil, reason_code = nil, reason_message = nil) @details = details @reason_code = reason_code @reason_message = reason_message end