class Ayadn::PreferencesCounts

Attributes

checkins[RW]
conversations[RW]
convo[RW]
default[RW]
files[RW]
global[RW]
mentions[RW]
messages[RW]
photos[RW]
posts[RW]
unified[RW]
whatstarred[RW]
whoreposted[RW]
whostarred[RW]

Public Class Methods

new(hash) click to toggle source
# 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

Public Instance Methods

to_h() click to toggle source
# 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