Sha256: 791a7db50bae6d4bf25921a8ba4737882210615e1342555894494215622b67fb

Contents?: true

Size: 786 Bytes

Versions: 1

Compression:

Stored size: 786 Bytes

Contents

require 'ppc/operation'
module PPC
  module Operation
    class Account
      include ::PPC::Operation

      def info
        info = call('account').info(@auth)
        @id = info[:result][0][:id] if @id == nil
        return info
      end

      def update(account)
        call('account').update(@auth,account)
      end

      # plan methods
      def plans
        call('plan').all(@auth)
      end

      def plan_ids
        call('plan').ids(@auth)
      end

      # plan operation
      include ::PPC::Operation::Plan_operation

      # group opeartion
      include ::PPC::Operation::Group_operation

      # keyword opeartion
      include ::PPC::Operation::Keyword_operation

      # creative opeartion
      include ::PPC::Operation::Creative_operation

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ppc-1.3.0 lib/ppc/operation/account.rb