Class: HatTrick::Config
- Inherits:
-
Object
- Object
- HatTrick::Config
- Defined in:
- lib/hat_trick/config.rb
Instance Attribute Summary collapse
-
#back_button_label ⇒ Object
Returns the value of attribute back_button_label.
-
#back_button_label_i18n_key ⇒ Object
Returns the value of attribute back_button_label_i18n_key.
-
#create_url ⇒ Object
Returns the value of attribute create_url.
-
#next_button_label ⇒ Object
Returns the value of attribute next_button_label.
-
#next_button_label_i18n_key ⇒ Object
Returns the value of attribute next_button_label_i18n_key.
-
#update_url ⇒ Object
Returns the value of attribute update_url.
Instance Method Summary collapse
-
#initialize(settings = {}) ⇒ Config
constructor
A new instance of Config.
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_label ⇒ Object
Returns the value of attribute back_button_label.
3 4 5 |
# File 'lib/hat_trick/config.rb', line 3 def @back_button_label end |
#back_button_label_i18n_key ⇒ Object
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 end |
#create_url ⇒ Object
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_label ⇒ Object
Returns the value of attribute next_button_label.
3 4 5 |
# File 'lib/hat_trick/config.rb', line 3 def @next_button_label end |
#next_button_label_i18n_key ⇒ Object
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 end |
#update_url ⇒ Object
Returns the value of attribute update_url.
3 4 5 |
# File 'lib/hat_trick/config.rb', line 3 def update_url @update_url end |