Class: HatTrick::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/hat_trick/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(settings = {}) ⇒ Config

Returns a new instance of Config.



7
8
9
10
11
12
13
14
# File 'lib/hat_trick/config.rb', line 7

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

Instance Attribute Details

#back_button_labelObject

Returns the value of attribute back_button_label.



3
4
5
# File 'lib/hat_trick/config.rb', line 3

def back_button_label
  @back_button_label
end

#back_button_label_i18n_keyObject

Returns the value of attribute back_button_label_i18n_key.



3
4
5
# File 'lib/hat_trick/config.rb', line 3

def back_button_label_i18n_key
  @back_button_label_i18n_key
end

#create_urlObject

Returns the value of attribute create_url.



3
4
5
# File 'lib/hat_trick/config.rb', line 3

def create_url
  @create_url
end

#next_button_labelObject

Returns the value of attribute next_button_label.



3
4
5
# File 'lib/hat_trick/config.rb', line 3

def next_button_label
  @next_button_label
end

#next_button_label_i18n_keyObject

Returns the value of attribute next_button_label_i18n_key.



3
4
5
# File 'lib/hat_trick/config.rb', line 3

def next_button_label_i18n_key
  @next_button_label_i18n_key
end

#update_urlObject

Returns the value of attribute update_url.



3
4
5
# File 'lib/hat_trick/config.rb', line 3

def update_url
  @update_url
end