This repository has been archived by the owner on Aug 9, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make lists and array and rip out misc classes into their own file
- Loading branch information
1 parent
e32f9b4
commit 2c8eee6
Showing
6 changed files
with
75 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
* Decide on convents about when to raise and when to return true/false | ||
|
||
So far I've kind of taken the stance if we're retrieving a list and there | ||
are only two possible failures (APIKey or primary key) to raise if there | ||
is an error but for update/save/create operations to return true/false | ||
and then let the user probe @object.result for more details |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
class CampaignMonitor | ||
|
||
# Encapsulates | ||
class SubscriberBounce #:nodoc: | ||
attr_reader :email_address, :bounce_type, :list_id | ||
|
||
def initialize(email_address, list_id, bounce_type) | ||
@email_address = email_address | ||
@bounce_type = bounce_type | ||
@list_id = list_id | ||
end | ||
end | ||
|
||
# Encapsulates | ||
class SubscriberOpen #:nodoc: | ||
attr_reader :email_address, :list_id, :opens | ||
|
||
def initialize(email_address, list_id, opens) | ||
@email_address = email_address | ||
@list_id = list_id | ||
@opens = opens | ||
end | ||
end | ||
|
||
# Encapsulates | ||
class SubscriberClick #:nodoc: | ||
attr_reader :email_address, :list_id, :clicked_links | ||
|
||
def initialize(email_address, list_id, clicked_links) | ||
@email_address = email_address | ||
@list_id = list_id | ||
@clicked_links = clicked_links | ||
end | ||
end | ||
|
||
# Encapsulates | ||
class SubscriberUnsubscribe #:nodoc: | ||
attr_reader :email_address, :list_id | ||
|
||
def initialize(email_address, list_id) | ||
@email_address = email_address | ||
@list_id = list_id | ||
end | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters