class Beaver::Industry
Industry
Model.
Attributes
category_detail[RW]
TODO: Write general description for this method @return [String]
merchant_category_code[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.rb, line 32 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. category_detail = hash['category_detail'] merchant_category_code = hash['merchant_category_code'] # Create object from extracted values. Industry.new(category_detail, merchant_category_code) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/beaver/models/industry.rb, line 18 def self.names @_hash = {} if @_hash.nil? @_hash['category_detail'] = 'category_detail' @_hash['merchant_category_code'] = 'merchant_category_code' @_hash end
new(category_detail = nil, merchant_category_code = nil)
click to toggle source
# File lib/beaver/models/industry.rb, line 25 def initialize(category_detail = nil, merchant_category_code = nil) @category_detail = category_detail @merchant_category_code = merchant_category_code end