class Popper::AccountAttributes
Public Class Methods
new(hash=nil)
click to toggle source
# File lib/popper/config.rb, line 44 def initialize(hash=nil) @table = {} @hash = hash hash.each do |k,v| @table[k.to_sym] = (v.is_a?(Hash) ? self.class.new(v) : v) new_ostruct_member(k) end if hash end
Public Instance Methods
rule_by_name(name)
click to toggle source
# File lib/popper/config.rb, line 94 def rule_by_name(name) begin @hash["rules"][name] rescue {} end end
to_h()
click to toggle source
# File lib/popper/config.rb, line 54 def to_h @hash end