Class: HipTail::Room::Detail
Instance Attribute Summary collapse
#id, #name, #raw
Method Summary
#detailed?, #initialize
Constructor Details
This class inherits a constructor from HipTail::Room
Instance Attribute Details
#created ⇒ Time
176
177
178
179
|
# File 'lib/hiptail/atom.rb', line 176
def created
@created ||= Time.parse(@raw['created'])
@created
end
|
#guest_access_url ⇒ String
224
225
226
|
# File 'lib/hiptail/atom.rb', line 224
def guest_access_url
@raw['guest_access_url']
end
|
#is_archived ⇒ Boolean
Also known as:
archived?
210
211
212
|
# File 'lib/hiptail/atom.rb', line 210
def is_archived
@raw['is_archived']
end
|
#is_guest_accessible ⇒ Boolean
Also known as:
guest_accessible?
217
218
219
|
# File 'lib/hiptail/atom.rb', line 217
def is_guest_accessible
@raw['is_guest_accessible']
end
|
#is_private ⇒ Boolean
Also known as:
private?
203
204
205
|
# File 'lib/hiptail/atom.rb', line 203
def is_private
privacy == 'private'
end
|
#is_public ⇒ Boolean
Also known as:
public?
196
197
198
|
# File 'lib/hiptail/atom.rb', line 196
def is_public
privacy == 'public'
end
|
#last_active ⇒ Time
183
184
185
186
|
# File 'lib/hiptail/atom.rb', line 183
def last_active
@last_active ||= Time.parse(@raw['last_active'])
@last_active
end
|
#owner ⇒ User
230
231
232
|
# File 'lib/hiptail/atom.rb', line 230
def owner
@owner ||= User.new(@raw['owner'])
end
|
#participants ⇒ Array
Returns Array of HipTail::User.
236
237
238
239
|
# File 'lib/hiptail/atom.rb', line 236
def participants
@participants ||= @raw['participants'].map { |user| User.new(user) }
@participants
end
|
#privacy ⇒ String
190
191
192
|
# File 'lib/hiptail/atom.rb', line 190
def privacy
@raw['privacy']
end
|
#topic ⇒ String
243
244
245
|
# File 'lib/hiptail/atom.rb', line 243
def topic
@raw['topic']
end
|
#xmpp_jid ⇒ String
249
250
251
|
# File 'lib/hiptail/atom.rb', line 249
def xmpp_jid
@raw['xmpp_jid']
end
|