lib/blurb/profile.rb in blurb-0.4.7 vs lib/blurb/profile.rb in blurb-0.4.8
- old
+ new
@@ -1,7 +1,6 @@
require "blurb/account"
-require "blurb/campaign_requests"
require "blurb/snapshot_requests"
require "blurb/report_requests"
require "blurb/request_collection"
require "blurb/request_collection_with_campaign_type"
require "blurb/suggested_keyword_requests"
@@ -22,16 +21,16 @@
def initialize(profile_id:, account:)
@profile_id = profile_id
@account = account
- @sp_campaigns = CampaignRequests.new(
+ @sp_campaigns = RequestCollectionWithCampaignType.new(
headers: headers_hash,
base_url: @account.api_url,
resource: "campaigns",
campaign_type: CAMPAIGN_TYPE_CODES[:sp]
)
- @sb_campaigns = CampaignRequests.new(
+ @sb_campaigns = RequestCollectionWithCampaignType.new(
headers: headers_hash,
base_url: @account.api_url,
resource: "campaigns",
campaign_type: CAMPAIGN_TYPE_CODES[:sb]
)