Class: Blackbeard::Test

Inherits:
Storable show all
Defined in:
lib/blackbeard/test.rb

Instance Attribute Summary

Attributes inherited from Storable

#id, #new_record

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

included

Methods included from StorableHasSet

included

Methods included from StorableHasMany

included

Methods included from ConfigurationMethods

#config, #db, #guest_method, included, #tz

Constructor Details

This class inherits a constructor from Blackbeard::Storable

Instance Method Details

#nameObject



14
15
16
# File 'lib/blackbeard/test.rb', line 14

def name
  storable_attributes_hash['name'] || id
end

#select_variationObject



9
10
11
12
# File 'lib/blackbeard/test.rb', line 9

def select_variation
  # add :off unless :off, :control, :default, or :inactive
  :off
end