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