Class: HasStates::Configuration::StateTypeConfiguration
- Inherits:
-
Object
- Object
- HasStates::Configuration::StateTypeConfiguration
- Defined in:
- lib/has_states/configuration/state_type_configuration.rb
Instance Attribute Summary collapse
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#metadata_schema ⇒ Object
Returns the value of attribute metadata_schema.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#statuses ⇒ Object
Returns the value of attribute statuses.
Instance Method Summary collapse
-
#initialize(name) ⇒ StateTypeConfiguration
constructor
A new instance of StateTypeConfiguration.
Constructor Details
#initialize(name) ⇒ StateTypeConfiguration
Returns a new instance of StateTypeConfiguration.
9 10 11 12 13 14 |
# File 'lib/has_states/configuration/state_type_configuration.rb', line 9 def initialize(name) @name = name @statuses = [] @limit = nil = nil end |
Instance Attribute Details
#limit ⇒ Object
Returns the value of attribute limit.
7 8 9 |
# File 'lib/has_states/configuration/state_type_configuration.rb', line 7 def limit @limit end |
#metadata_schema ⇒ Object
Returns the value of attribute metadata_schema.
7 8 9 |
# File 'lib/has_states/configuration/state_type_configuration.rb', line 7 def end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/has_states/configuration/state_type_configuration.rb', line 6 def name @name end |
#statuses ⇒ Object
Returns the value of attribute statuses.
7 8 9 |
# File 'lib/has_states/configuration/state_type_configuration.rb', line 7 def statuses @statuses end |