Class: Ynl::Models::Message
- Inherits:
-
Object
- Object
- Ynl::Models::Message
- Defined in:
- ynl/lib/ynl/models.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value:, attributes:) ⇒ Message
constructor
A new instance of Message.
- #resolve(f) ⇒ Object
Constructor Details
#initialize(value:, attributes:) ⇒ Message
Returns a new instance of Message.
225 226 227 228 |
# File 'ynl/lib/ynl/models.rb', line 225 def initialize(value:, attributes:) @value = value @attributes = attributes end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
223 224 225 |
# File 'ynl/lib/ynl/models.rb', line 223 def attributes @attributes end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
223 224 225 |
# File 'ynl/lib/ynl/models.rb', line 223 def value @value end |
Instance Method Details
#resolve(f) ⇒ Object
230 231 232 |
# File 'ynl/lib/ynl/models.rb', line 230 def resolve(f) self end |