Class: WebFunction::Argument

Inherits:
Object
  • Object
show all
Defined in:
lib/web_function/argument.rb

Instance Method Summary collapse

Constructor Details

#initialize(argument) ⇒ Argument

Returns a new instance of Argument.



5
6
7
# File 'lib/web_function/argument.rb', line 5

def initialize(argument)
  @argument = argument
end

Instance Method Details

#choicesObject



17
18
19
# File 'lib/web_function/argument.rb', line 17

def choices
  @argument["choices"]
end

#docsObject



25
26
27
# File 'lib/web_function/argument.rb', line 25

def docs
  @argument["docs"]
end

#flagsObject



21
22
23
# File 'lib/web_function/argument.rb', line 21

def flags
  @argument["flags"]
end

#nameObject



9
10
11
# File 'lib/web_function/argument.rb', line 9

def name
  @argument["name"]
end

#typeObject



13
14
15
# File 'lib/web_function/argument.rb', line 13

def type
  @argument["type"]
end