Class: Ayadn::PreferencesCounts
- Defined in:
- lib/ayadn/preferences_object.rb
Instance Attribute Summary collapse
-
#checkins ⇒ Object
Returns the value of attribute checkins.
-
#conversations ⇒ Object
Returns the value of attribute conversations.
-
#convo ⇒ Object
Returns the value of attribute convo.
-
#default ⇒ Object
Returns the value of attribute default.
-
#files ⇒ Object
Returns the value of attribute files.
-
#global ⇒ Object
Returns the value of attribute global.
-
#mentions ⇒ Object
Returns the value of attribute mentions.
-
#messages ⇒ Object
Returns the value of attribute messages.
-
#photos ⇒ Object
Returns the value of attribute photos.
-
#posts ⇒ Object
Returns the value of attribute posts.
-
#search ⇒ Object
Returns the value of attribute search.
-
#trending ⇒ Object
Returns the value of attribute trending.
-
#unified ⇒ Object
Returns the value of attribute unified.
-
#whatstarred ⇒ Object
Returns the value of attribute whatstarred.
-
#whoreposted ⇒ Object
Returns the value of attribute whoreposted.
-
#whostarred ⇒ Object
Returns the value of attribute whostarred.
Instance Method Summary collapse
-
#initialize(hash) ⇒ PreferencesCounts
constructor
A new instance of PreferencesCounts.
- #to_h ⇒ Object
Constructor Details
#initialize(hash) ⇒ PreferencesCounts
Returns a new instance of PreferencesCounts.
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/ayadn/preferences_object.rb', line 44 def initialize hash @default = hash[:default] @unified = hash[:unified] @global = hash[:global] @checkins = hash[:checkins] @conversations = hash[:conversations] @photos = hash[:photos] @trending = hash[:trending] @mentions = hash[:mentions] @convo = hash[:convo] @posts = hash[:posts] @messages = hash[:messages] @search = hash[:search] @whoreposted = hash[:whoreposted] @whostarred = hash[:whostarred] @whatstarred = hash[:whatstarred] @files = hash[:files] end |
Instance Attribute Details
#checkins ⇒ Object
Returns the value of attribute checkins.
43 44 45 |
# File 'lib/ayadn/preferences_object.rb', line 43 def checkins @checkins end |
#conversations ⇒ Object
Returns the value of attribute conversations.
43 44 45 |
# File 'lib/ayadn/preferences_object.rb', line 43 def conversations @conversations end |
#convo ⇒ Object
Returns the value of attribute convo.
43 44 45 |
# File 'lib/ayadn/preferences_object.rb', line 43 def convo @convo end |
#default ⇒ Object
Returns the value of attribute default.
43 44 45 |
# File 'lib/ayadn/preferences_object.rb', line 43 def default @default end |
#files ⇒ Object
Returns the value of attribute files.
43 44 45 |
# File 'lib/ayadn/preferences_object.rb', line 43 def files @files end |
#global ⇒ Object
Returns the value of attribute global.
43 44 45 |
# File 'lib/ayadn/preferences_object.rb', line 43 def global @global end |
#mentions ⇒ Object
Returns the value of attribute mentions.
43 44 45 |
# File 'lib/ayadn/preferences_object.rb', line 43 def mentions @mentions end |
#messages ⇒ Object
Returns the value of attribute messages.
43 44 45 |
# File 'lib/ayadn/preferences_object.rb', line 43 def @messages end |
#photos ⇒ Object
Returns the value of attribute photos.
43 44 45 |
# File 'lib/ayadn/preferences_object.rb', line 43 def photos @photos end |
#posts ⇒ Object
Returns the value of attribute posts.
43 44 45 |
# File 'lib/ayadn/preferences_object.rb', line 43 def posts @posts end |
#search ⇒ Object
Returns the value of attribute search.
43 44 45 |
# File 'lib/ayadn/preferences_object.rb', line 43 def search @search end |
#trending ⇒ Object
Returns the value of attribute trending.
43 44 45 |
# File 'lib/ayadn/preferences_object.rb', line 43 def trending @trending end |
#unified ⇒ Object
Returns the value of attribute unified.
43 44 45 |
# File 'lib/ayadn/preferences_object.rb', line 43 def unified @unified end |
#whatstarred ⇒ Object
Returns the value of attribute whatstarred.
43 44 45 |
# File 'lib/ayadn/preferences_object.rb', line 43 def whatstarred @whatstarred end |
#whoreposted ⇒ Object
Returns the value of attribute whoreposted.
43 44 45 |
# File 'lib/ayadn/preferences_object.rb', line 43 def whoreposted @whoreposted end |
#whostarred ⇒ Object
Returns the value of attribute whostarred.
43 44 45 |
# File 'lib/ayadn/preferences_object.rb', line 43 def whostarred @whostarred end |
Instance Method Details
#to_h ⇒ Object
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/ayadn/preferences_object.rb', line 62 def to_h { default: @default, unified: @unified, global: @global, checkins: @checkins, conversations: @conversations, photos: @photos, trending: @trending, mentions: @mentions, convo: @convo, posts: @posts, messages: @messages, search: @search, whoreposted: @whoreposted, whostarred: @whostarred, whatstarred: @whatstarred, files: @files } end |