Class: Input

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#defaultObject

Returns the value of attribute default

Returns:

  • (Object)

    the current value of default



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

def default
  @default
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



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

def description
  @description
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



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

def name
  @name
end

#requiredObject

Returns the value of attribute required

Returns:

  • (Object)

    the current value of required



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

def required
  @required
end

Class Method Details

.members_as_headersObject



7
8
9
# File 'lib/action.rb', line 7

def members_as_headers
  members.map(&:to_s).map(&:capitalize)
end