Class: Servactory::Inputs::Input::Actor

Inherits:
Object
  • Object
show all
Defined in:
lib/servactory/inputs/input.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(input) ⇒ Actor

Returns a new instance of Actor.



13
14
15
16
17
18
19
20
21
# File 'lib/servactory/inputs/input.rb', line 13

def initialize(input)
  @name = input.name
  @internal_name = input.internal_name
  @types = input.types
  @default = input.default
  @options = input.options

  define_identity_methods(input)
end

Instance Attribute Details

#defaultObject (readonly)

Returns the value of attribute default.



7
8
9
# File 'lib/servactory/inputs/input.rb', line 7

def default
  @default
end

#internal_nameObject (readonly)

Returns the value of attribute internal_name.



7
8
9
# File 'lib/servactory/inputs/input.rb', line 7

def internal_name
  @internal_name
end

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/servactory/inputs/input.rb', line 7

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



7
8
9
# File 'lib/servactory/inputs/input.rb', line 7

def options
  @options
end

#typesObject (readonly)

Returns the value of attribute types.



7
8
9
# File 'lib/servactory/inputs/input.rb', line 7

def types
  @types
end