Class: Newslettre::Client
- Inherits:
-
Object
- Object
- Newslettre::Client
- Defined in:
- lib/newslettre/client.rb
Instance Attribute Summary collapse
-
#api ⇒ Object
readonly
Returns the value of attribute api.
Instance Method Summary collapse
- #identities ⇒ Object
-
#initialize(email, password) ⇒ Client
constructor
A new instance of Client.
- #lists ⇒ Object
- #newsletters ⇒ Object
Constructor Details
#initialize(email, password) ⇒ Client
Returns a new instance of Client.
3 4 5 |
# File 'lib/newslettre/client.rb', line 3 def initialize email, password @api = Newslettre::API.new :email => email, :password => password end |
Instance Attribute Details
#api ⇒ Object (readonly)
Returns the value of attribute api.
2 3 4 |
# File 'lib/newslettre/client.rb', line 2 def api @api end |
Instance Method Details
#identities ⇒ Object
11 12 13 |
# File 'lib/newslettre/client.rb', line 11 def identities @identities ||= proxy_for Newslettre::Identity end |
#lists ⇒ Object
15 16 17 |
# File 'lib/newslettre/client.rb', line 15 def lists @lists ||= proxy_for Newslettre::Lists end |
#newsletters ⇒ Object
7 8 9 |
# File 'lib/newslettre/client.rb', line 7 def @newsletters ||= proxy_for Newslettre::Letter end |