class Beaver::IndustryCode

IndustryCode Model.

Attributes

code[RW]

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

code_type[RW]

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

industry_detail[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/industry_code.rb, line 39
def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  code = hash['code']
  code_type = hash['code_type']
  industry_detail = hash['industry_detail']

  # Create object from extracted values.
  IndustryCode.new(code,
                   code_type,
                   industry_detail)
end
names() click to toggle source

A mapping from model property names to API property names.

# File lib/beaver/models/industry_code.rb, line 22
def self.names
  @_hash = {} if @_hash.nil?
  @_hash['code'] = 'code'
  @_hash['code_type'] = 'code_type'
  @_hash['industry_detail'] = 'industry_detail'
  @_hash
end
new(code = nil, code_type = nil, industry_detail = nil) click to toggle source
# File lib/beaver/models/industry_code.rb, line 30
def initialize(code = nil,
               code_type = nil,
               industry_detail = nil)
  @code = code
  @code_type = code_type
  @industry_detail = industry_detail
end