Class: MailchimpAPI::Resource Private
- Inherits:
-
Object
- Object
- MailchimpAPI::Resource
- Defined in:
- lib/mailchimp-api/resource.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Base class for all REST APIs collections
Direct Known Subclasses
Audience::InterestCategories, Audience::Interests, Audience::MemberTags, Audience::Members, Audience::MergeFields, Audience::SegmentMembers, Audience::Segments, Audience::Webhooks, Audiences, Campaign::Content, CampaignFolders, Campaigns
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
private
Current client.
Class Method Summary collapse
-
.client ⇒ Object
private
Global client.
Instance Method Summary collapse
-
#initialize(client) ⇒ Collection
constructor
private
Initializes Resource.
Constructor Details
#initialize(client) ⇒ Collection
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initializes Resource
16 17 18 |
# File 'lib/mailchimp-api/resource.rb', line 16 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns current client.
8 9 10 |
# File 'lib/mailchimp-api/resource.rb', line 8 def client @client end |
Class Method Details
.client ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns global client.
21 22 23 |
# File 'lib/mailchimp-api/resource.rb', line 21 def self.client MailchimpAPI.client end |