Class: Arena::Account
- Inherits:
-
Base
- Object
- Base
- Arena::Account
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
#channels ⇒ Object
12
13
14
|
# File 'lib/arena/account.rb', line 12
def channels
@channels ||= @attrs['channels'].collect { |channel| Arena::Channel.new(channel) }
end
|
#following_channel_ids ⇒ Object
20
21
22
|
# File 'lib/arena/account.rb', line 20
def following_channel_ids
@following_channel_ids ||= @attrs['following_ids']['channels']
end
|
#following_user_ids ⇒ Object
24
25
26
|
# File 'lib/arena/account.rb', line 24
def following_user_ids
@following_user_ids ||= @attrs['following_ids']['users']
end
|
#help_channels ⇒ Object
16
17
18
|
# File 'lib/arena/account.rb', line 16
def help_channels
@help_channels ||= @attrs['help_channels'].collect { |channel| Arena::Channel.new(channel) }
end
|
#user ⇒ Object
8
9
10
|
# File 'lib/arena/account.rb', line 8
def user
@user ||= Arena::User.new(@attrs['user'])
end
|