Class: Split::Cli::Session
- Inherits:
-
Object
- Object
- Split::Cli::Session
- Includes:
- Helper
- Defined in:
- lib/split/cli/session.rb
Constant Summary collapse
- CONFIG_ERROR_MESSAGE =
'Set SPLIT_YAML_CONFIG to a valid path.'.freeze
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#session_id ⇒ Object
Returns the value of attribute session_id.
Instance Method Summary collapse
- #ab_test(*args) ⇒ Object
- #finished(*args) ⇒ Object
-
#initialize(session_id, options = {}) ⇒ Session
constructor
A new instance of Session.
Constructor Details
#initialize(session_id, options = {}) ⇒ Session
Returns a new instance of Session.
12 13 14 15 16 |
# File 'lib/split/cli/session.rb', line 12 def initialize(session_id, = {}) @session_id = session_id = config_split! end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
8 9 10 |
# File 'lib/split/cli/session.rb', line 8 def end |
#session_id ⇒ Object
Returns the value of attribute session_id.
8 9 10 |
# File 'lib/split/cli/session.rb', line 8 def session_id @session_id end |
Instance Method Details
#ab_test(*args) ⇒ Object
18 19 20 21 |
# File 'lib/split/cli/session.rb', line 18 def ab_test(*args) raise(Split::Cli::CommandError, 'No experiment name provided') unless args.any? super end |
#finished(*args) ⇒ Object
23 24 25 26 |
# File 'lib/split/cli/session.rb', line 23 def finished(*args) raise(Split::Cli::CommandError, 'No experiment name provided') unless args.any? super end |