Class: SportDB::Opts

Inherits:
Object
  • Object
show all
Defined in:
lib/sportdb/cli/opts.rb

Instance Method Summary collapse

Instance Method Details

#create=(boolean) ⇒ Object



5
6
7
# File 'lib/sportdb/cli/opts.rb', line 5

def create=(boolean)
  @create = boolean
end

#create?Boolean

Returns:

  • (Boolean)


9
10
11
12
# File 'lib/sportdb/cli/opts.rb', line 9

def create?
  return false if @create.nil?   # default create flag is false
  @create == true
end

#data_pathObject



28
29
30
# File 'lib/sportdb/cli/opts.rb', line 28

def data_path
  @data_path || '.'
end

#data_path=(value) ⇒ Object



24
25
26
# File 'lib/sportdb/cli/opts.rb', line 24

def data_path=(value)
  @data_path = value
end

#output_pathObject



19
20
21
# File 'lib/sportdb/cli/opts.rb', line 19

def output_path
  @output_path || '.'
end

#output_path=(value) ⇒ Object



15
16
17
# File 'lib/sportdb/cli/opts.rb', line 15

def output_path=(value)
  @output_path = value
end