Class: Ynl::Models::Message
- Inherits:
-
Object
- Object
- Ynl::Models::Message
- Defined in:
- 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.
188 189 190 191 |
# File 'lib/ynl/models.rb', line 188 def initialize(value:, attributes:) @value = value @attributes = attributes end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
186 187 188 |
# File 'lib/ynl/models.rb', line 186 def attributes @attributes end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
186 187 188 |
# File 'lib/ynl/models.rb', line 186 def value @value end |
Instance Method Details
#resolve(f) ⇒ Object
193 194 195 |
# File 'lib/ynl/models.rb', line 193 def resolve(f) self end |