Class: Ayadn::PreferencesMarker
- Defined in:
- lib/ayadn/preferences_object.rb
Instance Attribute Summary collapse
-
#messages ⇒ Object
Returns the value of attribute messages.
Instance Method Summary collapse
-
#initialize(hash) ⇒ PreferencesMarker
constructor
A new instance of PreferencesMarker.
- #to_h ⇒ Object
Constructor Details
#initialize(hash) ⇒ PreferencesMarker
Returns a new instance of PreferencesMarker.
86 87 88 |
# File 'lib/ayadn/preferences_object.rb', line 86 def initialize hash @messages = hash[:messages] end |
Instance Attribute Details
#messages ⇒ Object
Returns the value of attribute messages.
85 86 87 |
# File 'lib/ayadn/preferences_object.rb', line 85 def @messages end |
Instance Method Details
#to_h ⇒ Object
89 90 91 |
# File 'lib/ayadn/preferences_object.rb', line 89 def to_h {messages: @messages} end |