class PowerApi::GeneratorHelpers
Public Class Methods
new(config = {})
click to toggle source
# File lib/power_api/generator_helpers.rb, line 14 def initialize(config = {}) config.each do |attribute, value| load_attribute(attribute, value) end end
Private Instance Methods
load_attribute(attribute, value)
click to toggle source
# File lib/power_api/generator_helpers.rb, line 22 def load_attribute(attribute, value) send("#{attribute}=", value) end