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
10
11
12
|
# File 'lib/arena/account.rb', line 10
def channels
@channels ||= @attrs["channels"].collect { |channel| Arena::Channel.new(channel) }
end
|
#following_channel_ids ⇒ Object
18
19
20
|
# File 'lib/arena/account.rb', line 18
def following_channel_ids
@following_channel_ids ||= @attrs["following_ids"]["channels"]
end
|
#following_user_ids ⇒ Object
22
23
24
|
# File 'lib/arena/account.rb', line 22
def following_user_ids
@following_user_ids ||= @attrs["following_ids"]["users"]
end
|
#help_channels ⇒ Object
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
|
#user ⇒ Object
6
7
8
|
# File 'lib/arena/account.rb', line 6
def user
@user ||= Arena::User.new(@attrs["user"])
end
|