Class: Servactory::Inputs::Input::Actor
- Inherits:
-
Object
- Object
- Servactory::Inputs::Input::Actor
- Defined in:
- lib/servactory/inputs/input.rb
Instance Attribute Summary collapse
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#internal_name ⇒ Object
readonly
Returns the value of attribute internal_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#types ⇒ Object
readonly
Returns the value of attribute types.
Instance Method Summary collapse
-
#initialize(input) ⇒ Actor
constructor
A new instance of Actor.
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. define_identity_methods(input) end |
Instance Attribute Details
#default ⇒ Object (readonly)
Returns the value of attribute default.
7 8 9 |
# File 'lib/servactory/inputs/input.rb', line 7 def default @default end |
#internal_name ⇒ Object (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 |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/servactory/inputs/input.rb', line 7 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/servactory/inputs/input.rb', line 7 def @options end |
#types ⇒ Object (readonly)
Returns the value of attribute types.
7 8 9 |
# File 'lib/servactory/inputs/input.rb', line 7 def types @types end |