class Beaver::CountriesOptedOutMethods
CountriesOptedOutMethods
Model.
Attributes
ca[RW]
TODO: Write general description for this method @return [CountryOptedOutMethods]
Public Class Methods
from_hash(hash)
click to toggle source
Creates an instance of the object from a hash.
# File lib/beaver/models/countries_opted_out_methods.rb, line 25 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. ca = CountryOptedOutMethods.from_hash(hash['CA']) if hash['CA'] # Create object from extracted values. CountriesOptedOutMethods.new(ca) end
names()
click to toggle source
A mapping from model property names to API property names.
# File lib/beaver/models/countries_opted_out_methods.rb, line 14 def self.names @_hash = {} if @_hash.nil? @_hash['ca'] = 'CA' @_hash end
new(ca = nil)
click to toggle source
# File lib/beaver/models/countries_opted_out_methods.rb, line 20 def initialize(ca = nil) @ca = ca end