Class: Gridspace::GetDigits

Inherits:
BaseCommand show all
Defined in:
lib/gridspace/commands.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseCommand

#class_name, #to_json

Methods inherited from JSONable

#from_json!, #to_json

Constructor Details

#initialize(count, prompt, url) ⇒ GetDigits

Returns a new instance of GetDigits.



45
46
47
48
49
# File 'lib/gridspace/commands.rb', line 45

def initialize count, prompt, url
  @count = count
  @prompt = prompt
  @url = url
end

Instance Attribute Details

#countObject

Returns the value of attribute count.



44
45
46
# File 'lib/gridspace/commands.rb', line 44

def count
  @count
end

#promptObject

Returns the value of attribute prompt.



44
45
46
# File 'lib/gridspace/commands.rb', line 44

def prompt
  @prompt
end

#urlObject

Returns the value of attribute url.



44
45
46
# File 'lib/gridspace/commands.rb', line 44

def url
  @url
end