Class: Ayadn::PreferencesChannels
- Defined in:
- lib/ayadn/preferences_object.rb
Instance Attribute Summary collapse
-
#links ⇒ Object
Returns the value of attribute links.
Instance Method Summary collapse
-
#initialize(hash) ⇒ PreferencesChannels
constructor
A new instance of PreferencesChannels.
- #to_h ⇒ Object
Constructor Details
#initialize(hash) ⇒ PreferencesChannels
Returns a new instance of PreferencesChannels.
120 121 122 |
# File 'lib/ayadn/preferences_object.rb', line 120 def initialize hash @links = hash[:links] end |
Instance Attribute Details
#links ⇒ Object
Returns the value of attribute links.
119 120 121 |
# File 'lib/ayadn/preferences_object.rb', line 119 def links @links end |
Instance Method Details
#to_h ⇒ Object
123 124 125 |
# File 'lib/ayadn/preferences_object.rb', line 123 def to_h { links: @links } end |