Class: Ayadn::PreferencesColors

Inherits:
Object
  • Object
show all
Defined in:
lib/ayadn/preferences_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#dateObject

Returns the value of attribute date.



129
130
131
# File 'lib/ayadn/preferences_object.rb', line 129

def date
  @date
end

#debugObject

Returns the value of attribute debug.



129
130
131
# File 'lib/ayadn/preferences_object.rb', line 129

def debug
  @debug
end

#dotsObject

Returns the value of attribute dots.



129
130
131
# File 'lib/ayadn/preferences_object.rb', line 129

def dots
  @dots
end

#excerptObject

Returns the value of attribute excerpt.



129
130
131
# File 'lib/ayadn/preferences_object.rb', line 129

def excerpt
  @excerpt
end

#hashtagsObject

Returns the value of attribute hashtags.



129
130
131
# File 'lib/ayadn/preferences_object.rb', line 129

def hashtags
  @hashtags
end

#idObject

Returns the value of attribute id.



129
130
131
# File 'lib/ayadn/preferences_object.rb', line 129

def id
  @id
end

#indexObject

Returns the value of attribute index.



129
130
131
# File 'lib/ayadn/preferences_object.rb', line 129

def index
  @index
end

Returns the value of attribute link.



129
130
131
# File 'lib/ayadn/preferences_object.rb', line 129

def link
  @link
end

#mentionsObject

Returns the value of attribute mentions.



129
130
131
# File 'lib/ayadn/preferences_object.rb', line 129

def mentions
  @mentions
end

#nameObject

Returns the value of attribute name.



129
130
131
# File 'lib/ayadn/preferences_object.rb', line 129

def name
  @name
end

#sourceObject

Returns the value of attribute source.



129
130
131
# File 'lib/ayadn/preferences_object.rb', line 129

def source
  @source
end

#symbolsObject

Returns the value of attribute symbols.



129
130
131
# File 'lib/ayadn/preferences_object.rb', line 129

def symbols
  @symbols
end

#unreadObject

Returns the value of attribute unread.



129
130
131
# File 'lib/ayadn/preferences_object.rb', line 129

def unread
  @unread
end

#usernameObject

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_hObject



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