Class: Blackbeard::Test
Instance Attribute Summary
Attributes inherited from Storable
Instance Method Summary collapse
Methods inherited from Storable
#==, all, all_keys, count, create, find, find_or_create, #initialize, #key, key_for, #master_key, master_key, new_from_key, new_from_keys, #new_record?, on_reload, on_reload_methods, on_save, on_save_methods, #reload, #save, set_master_key
Methods included from StorableAttributes
Methods included from StorableHasSet
Methods included from StorableHasMany
Methods included from ConfigurationMethods
#config, #db, #guest_method, included, #tz
Constructor Details
This class inherits a constructor from Blackbeard::Storable
Instance Method Details
#name ⇒ Object
14 15 16 |
# File 'lib/blackbeard/test.rb', line 14 def name storable_attributes_hash['name'] || id end |
#select_variation ⇒ Object
9 10 11 12 |
# File 'lib/blackbeard/test.rb', line 9 def select_variation # add :off unless :off, :control, :default, or :inactive :off end |