Class: Ayadn::PreferencesCounts

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#checkinsObject

Returns the value of attribute checkins.



43
44
45
# File 'lib/ayadn/preferences_object.rb', line 43

def checkins
  @checkins
end

#conversationsObject

Returns the value of attribute conversations.



43
44
45
# File 'lib/ayadn/preferences_object.rb', line 43

def conversations
  @conversations
end

#convoObject

Returns the value of attribute convo.



43
44
45
# File 'lib/ayadn/preferences_object.rb', line 43

def convo
  @convo
end

#defaultObject

Returns the value of attribute default.



43
44
45
# File 'lib/ayadn/preferences_object.rb', line 43

def default
  @default
end

#filesObject

Returns the value of attribute files.



43
44
45
# File 'lib/ayadn/preferences_object.rb', line 43

def files
  @files
end

#globalObject

Returns the value of attribute global.



43
44
45
# File 'lib/ayadn/preferences_object.rb', line 43

def global
  @global
end

#mentionsObject

Returns the value of attribute mentions.



43
44
45
# File 'lib/ayadn/preferences_object.rb', line 43

def mentions
  @mentions
end

#messagesObject

Returns the value of attribute messages.



43
44
45
# File 'lib/ayadn/preferences_object.rb', line 43

def messages
  @messages
end

#photosObject

Returns the value of attribute photos.



43
44
45
# File 'lib/ayadn/preferences_object.rb', line 43

def photos
  @photos
end

#postsObject

Returns the value of attribute posts.



43
44
45
# File 'lib/ayadn/preferences_object.rb', line 43

def posts
  @posts
end

#searchObject

Returns the value of attribute search.



43
44
45
# File 'lib/ayadn/preferences_object.rb', line 43

def search
  @search
end

Returns the value of attribute trending.



43
44
45
# File 'lib/ayadn/preferences_object.rb', line 43

def trending
  @trending
end

#unifiedObject

Returns the value of attribute unified.



43
44
45
# File 'lib/ayadn/preferences_object.rb', line 43

def unified
  @unified
end

#whatstarredObject

Returns the value of attribute whatstarred.



43
44
45
# File 'lib/ayadn/preferences_object.rb', line 43

def whatstarred
  @whatstarred
end

#whorepostedObject

Returns the value of attribute whoreposted.



43
44
45
# File 'lib/ayadn/preferences_object.rb', line 43

def whoreposted
  @whoreposted
end

#whostarredObject

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_hObject



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