Class: LightService::ValidatedContext::ValidatedKey
- Inherits:
-
Object
- Object
- LightService::ValidatedContext::ValidatedKey
- Defined in:
- lib/light_service/validated_context/validated_key.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(label, type, message: nil) ⇒ ValidatedKey
constructor
A new instance of ValidatedKey.
- #to_s ⇒ Object
- #to_sym ⇒ Object
Constructor Details
#initialize(label, type, message: nil) ⇒ ValidatedKey
Returns a new instance of ValidatedKey.
8 9 10 11 12 |
# File 'lib/light_service/validated_context/validated_key.rb', line 8 def initialize(label, type, message: nil) @label = label @type = type @message = end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
6 7 8 |
# File 'lib/light_service/validated_context/validated_key.rb', line 6 def label @label end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/light_service/validated_context/validated_key.rb', line 6 def @message end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/light_service/validated_context/validated_key.rb', line 6 def type @type end |
Instance Method Details
#to_s ⇒ Object
18 19 20 |
# File 'lib/light_service/validated_context/validated_key.rb', line 18 def to_s label.to_s end |
#to_sym ⇒ Object
14 15 16 |
# File 'lib/light_service/validated_context/validated_key.rb', line 14 def to_sym label.to_sym end |