Class: Foscam::Model::MailServer::Recipient

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#addressObject

Returns the value of attribute address.



19
20
21
# File 'lib/foscam/model/mail_server.rb', line 19

def address
  @address
end

#idObject

Returns the value of attribute id.



17
18
19
# File 'lib/foscam/model/mail_server.rb', line 17

def id
  @id
end