Class: GetResponse::Account
- Inherits:
-
Object
- Object
- GetResponse::Account
- Defined in:
- lib/get_response/account.rb
Overview
GetResponse Account.
Instance Attribute Summary collapse
-
#created_on ⇒ Object
readonly
Returns the value of attribute created_on.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#login ⇒ Object
readonly
Returns the value of attribute login.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#blacklist ⇒ Blacklist
Get the entire blacklisted emails list for this account.
- #domains ⇒ Object
- #from_fields ⇒ Object
-
#initialize(params, connection) ⇒ Account
constructor
A new instance of Account.
Constructor Details
#initialize(params, connection) ⇒ Account
Returns a new instance of Account.
8 9 10 11 12 13 14 |
# File 'lib/get_response/account.rb', line 8 def initialize(params, connection) @login = params["login"] @name = params["from_name"] @email = params["from_email"] @created_on = params["created_on"] @connection = connection end |
Instance Attribute Details
#created_on ⇒ Object (readonly)
Returns the value of attribute created_on.
5 6 7 |
# File 'lib/get_response/account.rb', line 5 def created_on @created_on end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
5 6 7 |
# File 'lib/get_response/account.rb', line 5 def email @email end |
#login ⇒ Object (readonly)
Returns the value of attribute login.
5 6 7 |
# File 'lib/get_response/account.rb', line 5 def login @login end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/get_response/account.rb', line 5 def name @name end |
Instance Method Details
#blacklist ⇒ Blacklist
Get the entire blacklisted emails list for this account.
30 31 32 33 |
# File 'lib/get_response/account.rb', line 30 def blacklist entries = @connection.send_request("get_account_blacklist")["result"].values GetResponse::Blacklist.new(entries, @connection, self) end |
#domains ⇒ Object
22 23 24 |
# File 'lib/get_response/account.rb', line 22 def domains DomainProxy.new(@connection) end |
#from_fields ⇒ Object
17 18 19 |
# File 'lib/get_response/account.rb', line 17 def from_fields FromFieldsProxy.new(@connection) end |