Class: Ynl::Models::Message

Inherits:
Object
  • Object
show all
Defined in:
ynl/lib/ynl/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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