Class: Arena::Account

Inherits:
Base
  • Object
show all
Defined in:
lib/arena/account.rb

Instance Attribute Summary

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

attr_reader, #initialize

Constructor Details

This class inherits a constructor from Arena::Base

Instance Method Details

#channelsObject



10
11
12
# File 'lib/arena/account.rb', line 10

def channels
  @channels ||= @attrs["channels"].collect { |channel| Arena::Channel.new(channel) }
end

#following_channel_idsObject



18
19
20
# File 'lib/arena/account.rb', line 18

def following_channel_ids
  @following_channel_ids ||= @attrs["following_ids"]["channels"]
end

#following_user_idsObject



22
23
24
# File 'lib/arena/account.rb', line 22

def following_user_ids
  @following_user_ids ||= @attrs["following_ids"]["users"]
end

#help_channelsObject



14
15
16
# File 'lib/arena/account.rb', line 14

def help_channels
  @help_channels ||= @attrs["help_channels"].collect { |channel| Arena::Channel.new(channel) }
end

#userObject



6
7
8
# File 'lib/arena/account.rb', line 6

def user
  @user ||= Arena::User.new(@attrs["user"])
end