Class: IIInteractor::Variable

Inherits:
Struct
  • Object
show all
Defined in:
lib/ii_interactor/variables.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name



4
5
6
# File 'lib/ii_interactor/variables.rb', line 4

def name
  @name
end

#optionsObject

Returns the value of attribute options



4
5
6
# File 'lib/ii_interactor/variables.rb', line 4

def options
  @options
end

Instance Method Details

#defaultObject



5
6
7
# File 'lib/ii_interactor/variables.rb', line 5

def default
  options[:default] if options
end

#from_return?Boolean



13
14
15
# File 'lib/ii_interactor/variables.rb', line 13

def from_return?
  options[:from_return] if options
end

#required?Boolean



9
10
11
# File 'lib/ii_interactor/variables.rb', line 9

def required?
  options[:required] if options
end