Class: Redwood::Account
Instance Attribute Summary (collapse)
-
- (Object) sendmail
Returns the value of attribute sendmail.
-
- (Object) signature
Returns the value of attribute signature.
Attributes inherited from Person
Instance Method Summary (collapse)
-
- (Account) initialize(h)
constructor
A new instance of Account.
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
- (Account) initialize(h)
A new instance of Account
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 |