Class: Redwood::Account

Inherits:
Person show all
Defined in:
lib/sup/account.rb

Instance Attribute Summary collapse

Attributes inherited from Person

#email, #name

Instance Method Summary collapse

Methods inherited from Person

#eql?, from_address, from_address_list, #full_address, #hash, #indexable_content, #longname, #mediumname, #shortname, #sort_by_me, #to_s

Constructor Details

#initialize(h) ⇒ Account

Returns a new instance of Account

Raises:

  • (ArgumentError)


6
7
8
9
10
11
12
# File 'lib/sup/account.rb', line 6

def initialize h
  raise ArgumentError, "no name for account" unless h[:name]
  raise ArgumentError, "no email for account" unless h[:email]
  super h[:name], h[:email]
  @sendmail = h[:sendmail]
  @signature = h[:signature]
end

Instance Attribute Details

#sendmailObject

Returns the value of attribute sendmail



4
5
6
# File 'lib/sup/account.rb', line 4

def sendmail
  @sendmail
end

#signatureObject

Returns the value of attribute signature



4
5
6
# File 'lib/sup/account.rb', line 4

def signature
  @signature
end