Class: ReverseParameters::BaseCollection::Item
- Inherits:
-
Object
- Object
- ReverseParameters::BaseCollection::Item
- Defined in:
- lib/reverse_parameters.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Instance Method Summary collapse
-
#initialize(name:, state:, **options) ⇒ Item
constructor
A new instance of Item.
- #post_initialize ⇒ Object
Constructor Details
#initialize(name:, state:, **options) ⇒ Item
Returns a new instance of Item.
62 63 64 65 66 |
# File 'lib/reverse_parameters.rb', line 62 def initialize(name:, state:, **) @name = name @state = state post_initialize() end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
71 72 73 |
# File 'lib/reverse_parameters.rb', line 71 def name @name end |
#state ⇒ Object (readonly)
Returns the value of attribute state.
71 72 73 |
# File 'lib/reverse_parameters.rb', line 71 def state @state end |
Instance Method Details
#post_initialize ⇒ Object
68 69 |
# File 'lib/reverse_parameters.rb', line 68 def post_initialize(*) end |