Class: Ayadn::PreferencesColors
- Defined in:
- lib/ayadn/preferences_object.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
Returns the value of attribute date.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#dots ⇒ Object
Returns the value of attribute dots.
-
#excerpt ⇒ Object
Returns the value of attribute excerpt.
-
#hashtags ⇒ Object
Returns the value of attribute hashtags.
-
#id ⇒ Object
Returns the value of attribute id.
-
#index ⇒ Object
Returns the value of attribute index.
-
#link ⇒ Object
Returns the value of attribute link.
-
#mentions ⇒ Object
Returns the value of attribute mentions.
-
#name ⇒ Object
Returns the value of attribute name.
-
#source ⇒ Object
Returns the value of attribute source.
-
#symbols ⇒ Object
Returns the value of attribute symbols.
-
#unread ⇒ Object
Returns the value of attribute unread.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(hash) ⇒ PreferencesColors
constructor
A new instance of PreferencesColors.
- #to_h ⇒ Object
Constructor Details
#initialize(hash) ⇒ PreferencesColors
Returns a new instance of PreferencesColors.
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
# File 'lib/ayadn/preferences_object.rb', line 130 def initialize hash @index = hash[:index] @username = hash[:username] @name = hash[:name] @date = hash[:date] @link = hash[:link] @dots = hash[:dots] @hashtags = hash[:hashtags] @mentions = hash[:mentions] @source = hash[:source] @symbols = hash[:symbols] @unread = hash[:unread] @debug = hash[:debug] @excerpt = hash[:excerpt] @id = hash[:id] end |
Instance Attribute Details
#date ⇒ Object
Returns the value of attribute date.
129 130 131 |
# File 'lib/ayadn/preferences_object.rb', line 129 def date @date end |
#debug ⇒ Object
Returns the value of attribute debug.
129 130 131 |
# File 'lib/ayadn/preferences_object.rb', line 129 def debug @debug end |
#dots ⇒ Object
Returns the value of attribute dots.
129 130 131 |
# File 'lib/ayadn/preferences_object.rb', line 129 def dots @dots end |
#excerpt ⇒ Object
Returns the value of attribute excerpt.
129 130 131 |
# File 'lib/ayadn/preferences_object.rb', line 129 def excerpt @excerpt end |
#hashtags ⇒ Object
Returns the value of attribute hashtags.
129 130 131 |
# File 'lib/ayadn/preferences_object.rb', line 129 def @hashtags end |
#id ⇒ Object
Returns the value of attribute id.
129 130 131 |
# File 'lib/ayadn/preferences_object.rb', line 129 def id @id end |
#index ⇒ Object
Returns the value of attribute index.
129 130 131 |
# File 'lib/ayadn/preferences_object.rb', line 129 def index @index end |
#link ⇒ Object
Returns the value of attribute link.
129 130 131 |
# File 'lib/ayadn/preferences_object.rb', line 129 def link @link end |
#mentions ⇒ Object
Returns the value of attribute mentions.
129 130 131 |
# File 'lib/ayadn/preferences_object.rb', line 129 def mentions @mentions end |
#name ⇒ Object
Returns the value of attribute name.
129 130 131 |
# File 'lib/ayadn/preferences_object.rb', line 129 def name @name end |
#source ⇒ Object
Returns the value of attribute source.
129 130 131 |
# File 'lib/ayadn/preferences_object.rb', line 129 def source @source end |
#symbols ⇒ Object
Returns the value of attribute symbols.
129 130 131 |
# File 'lib/ayadn/preferences_object.rb', line 129 def symbols @symbols end |
#unread ⇒ Object
Returns the value of attribute unread.
129 130 131 |
# File 'lib/ayadn/preferences_object.rb', line 129 def unread @unread end |
#username ⇒ Object
Returns the value of attribute username.
129 130 131 |
# File 'lib/ayadn/preferences_object.rb', line 129 def username @username end |
Instance Method Details
#to_h ⇒ Object
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 |
# File 'lib/ayadn/preferences_object.rb', line 146 def to_h { id: @id, index: @index, username: @username, name: @name, date: @date, link: @link, dots: @dots, hashtags: @hashtags, mentions: @mentions, source: @source, symbols: @symbols, unread: @unread, debug: @debug, excerpt: @excerpt } end |