Class: Ynl::Models::Message

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attributesObject (readonly)

Returns the value of attribute attributes.



186
187
188
# File 'lib/ynl/models.rb', line 186

def attributes
  @attributes
end

#valueObject (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