Class: HipTail::Room::Detail

Inherits:
HipTail::Room show all
Defined in:
lib/hiptail/atom.rb

Instance Attribute Summary collapse

Attributes inherited from HipTail::Room

#id, #name, #raw

Method Summary

Methods inherited from HipTail::Room

#detailed?, #initialize

Constructor Details

This class inherits a constructor from HipTail::Room

Instance Attribute Details

#createdTime (readonly)

Returns:

  • (Time)


176
177
178
179
# File 'lib/hiptail/atom.rb', line 176

def created
  @created ||= Time.parse(@raw['created'])
  @created
end

#guest_access_urlString (readonly)

Returns:

  • (String)


224
225
226
# File 'lib/hiptail/atom.rb', line 224

def guest_access_url
  @raw['guest_access_url']
end

#is_archivedBoolean (readonly) Also known as: archived?

Returns:

  • (Boolean)


210
211
212
# File 'lib/hiptail/atom.rb', line 210

def is_archived
  @raw['is_archived']
end

#is_guest_accessibleBoolean (readonly) Also known as: guest_accessible?

Returns:

  • (Boolean)


217
218
219
# File 'lib/hiptail/atom.rb', line 217

def is_guest_accessible
  @raw['is_guest_accessible']
end

#is_privateBoolean (readonly) Also known as: private?

Returns:

  • (Boolean)


203
204
205
# File 'lib/hiptail/atom.rb', line 203

def is_private
  privacy == 'private'
end

#is_publicBoolean (readonly) Also known as: public?

Returns:

  • (Boolean)


196
197
198
# File 'lib/hiptail/atom.rb', line 196

def is_public
  privacy == 'public'
end

#last_activeTime (readonly)

Returns:

  • (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

#ownerUser (readonly)

Returns:



230
231
232
# File 'lib/hiptail/atom.rb', line 230

def owner
  @owner ||= User.new(@raw['owner'])
end

#participantsArray (readonly)

Returns Array of HipTail::User.

Returns:

  • (Array)

    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

#privacyString (readonly)

Returns:

  • (String)


190
191
192
# File 'lib/hiptail/atom.rb', line 190

def privacy
  @raw['privacy']
end

#topicString (readonly)

Returns:

  • (String)


243
244
245
# File 'lib/hiptail/atom.rb', line 243

def topic
  @raw['topic']
end

#xmpp_jidString (readonly)

Returns:

  • (String)


249
250
251
# File 'lib/hiptail/atom.rb', line 249

def xmpp_jid
  @raw['xmpp_jid']
end