class Beaver::CurrentIssue2
CurrentIssue2
Model.
Attributes
additional_documents_required[RW]
TODO: Write general description for this method @return [List of String]
errant_fields[RW]
TODO: Write general description for this method @return [Hash]
in_review[RW]
TODO: Write general description for this method @return [List of String]
issue_type[RW]
TODO: Write general description for this method @return [IssueType4Enum]
target[RW]
TODO: Write general description for this method @return [Target]
Public Class Methods
from_hash(hash)
click to toggle source
Creates an instance of the object from a hash.
# File lib/beaver/models/current_issue2.rb, line 54 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. issue_type = hash['issue_type'] target = Target.from_hash(hash['target']) if hash['target'] additional_documents_required = hash['additional_documents_required'] errant_fields = hash['errant_fields'] in_review = hash['in_review'] # Create object from extracted values. CurrentIssue2.new(issue_type, target, additional_documents_required, errant_fields, in_review) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/beaver/models/current_issue2.rb, line 30 def self.names @_hash = {} if @_hash.nil? @_hash['additional_documents_required'] = 'additional_documents_required' @_hash['errant_fields'] = 'errant_fields' @_hash['in_review'] = 'in_review' @_hash['issue_type'] = 'issue_type' @_hash['target'] = 'target' @_hash end
new(issue_type = nil, target = nil, additional_documents_required = nil, errant_fields = nil, in_review = nil)
click to toggle source
# File lib/beaver/models/current_issue2.rb, line 41 def initialize(issue_type = nil, target = nil, additional_documents_required = nil, errant_fields = nil, in_review = nil) @additional_documents_required = additional_documents_required @errant_fields = errant_fields @in_review = in_review @issue_type = issue_type @target = target end