Class: AppnexusApi::BidderProfileResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/appnexusapi/bidder_profile_service.rb,
lib/appnexusapi/bidder_profile_resource.rb

Instance Method Summary collapse

Methods inherited from Resource

#method_missing, #raw_json, #to_s, #update

Constructor Details

#initialize(connection, bidder_id) ⇒ BidderProfileResource

Returns a new instance of BidderProfileResource.



3
4
5
6
# File 'lib/appnexusapi/bidder_profile_service.rb', line 3

def initialize(connection, bidder_id)
  @bidder_id = bidder_id
  super(connection)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class AppnexusApi::Resource

Instance Method Details

#delete(id) ⇒ Object



20
21
22
# File 'lib/appnexusapi/bidder_profile_service.rb', line 20

def delete(id)
  raise AppnexusApi::NotImplemented
end

#nameObject



8
9
10
# File 'lib/appnexusapi/bidder_profile_service.rb', line 8

def name
  "profile"
end

#resource_classObject



12
13
14
# File 'lib/appnexusapi/bidder_profile_service.rb', line 12

def resource_class
  AppnexusApi::BidderProfileResource
end

#uri_suffixObject



16
17
18
# File 'lib/appnexusapi/bidder_profile_service.rb', line 16

def uri_suffix
  "bidder-profile/#{@bidder_id}"
end