Class: Reve::Classes::MailingList

Inherits:
Object
  • Object
show all
Defined in:
lib/reve/classes.rb

Overview

Represents a MailingList for Reve::API#personal_mailing_lists Attributes

  • id ( Fixnum ) - ID of the MailingList (use this in the Reve::API#mail_messages call)

  • name ( String ) - Name of the MailingList

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ MailingList

:nodoc:



1526
1527
1528
1529
# File 'lib/reve/classes.rb', line 1526

def initialize(elem) #:nodoc:
  @id = elem['listID'].to_i
  @name = elem['displayName']
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



1525
1526
1527
# File 'lib/reve/classes.rb', line 1525

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



1525
1526
1527
# File 'lib/reve/classes.rb', line 1525

def name
  @name
end