Class: Foscam::Model::MailServer::Recipient
- Inherits:
-
Object
- Object
- Foscam::Model::MailServer::Recipient
- Extended by:
- ActiveModel::Naming, ActiveModel::Translation
- Includes:
- ActiveModel::Conversion, ActiveModel::Dirty, ActiveModel::Validations, Singleton
- Defined in:
- lib/foscam/model/mail_server.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(params = nil) ⇒ Recipient
constructor
A new instance of Recipient.
Constructor Details
#initialize(params = nil) ⇒ Recipient
Returns a new instance of Recipient.
23 24 25 26 27 |
# File 'lib/foscam/model/mail_server.rb', line 23 def initialize(params = nil) params.each do |attr, value| self.public_send("#{attr}=", value) end if params end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
19 20 21 |
# File 'lib/foscam/model/mail_server.rb', line 19 def address @address end |
#id ⇒ Object
Returns the value of attribute id.
17 18 19 |
# File 'lib/foscam/model/mail_server.rb', line 17 def id @id end |