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:



1476
1477
1478
1479
# File 'lib/reve/classes.rb', line 1476

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

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



1475
1476
1477
# File 'lib/reve/classes.rb', line 1475

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



1475
1476
1477
# File 'lib/reve/classes.rb', line 1475

def name
  @name
end