Sha256: 7cfec26befbec4721d31d3602f9a617bb422c4a58eff5b258fc88864746a8539

Contents?: true

Size: 392 Bytes

Versions: 8

Compression:

Stored size: 392 Bytes

Contents

module HatTrick
  class Config
    attr_accessor :create_url, :update_url, :back_button_label,
                  :next_button_label, :back_button_label_i18n_key,
                  :next_button_label_i18n_key

    def initialize(settings={})
      settings.each do |k,v|
        setter = "#{k}="
        if respond_to?(setter)
          send(setter, v)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hat-trick-0.4.0 lib/hat_trick/config.rb
hat-trick-0.3.0 lib/hat_trick/config.rb
hat-trick-0.2.2 lib/hat_trick/config.rb
hat-trick-0.2.1 lib/hat_trick/config.rb
hat-trick-0.2.0 lib/hat_trick/config.rb
hat-trick-0.1.5 lib/hat_trick/config.rb
hat-trick-0.1.4 lib/hat_trick/config.rb
hat-trick-0.1.3 lib/hat_trick/config.rb