Sha256: 088f96c55659dd3f8821e600d0379b247729fc67b1459ffd8534e9cca5c4dac1

Contents?: true

Size: 1.1 KB

Versions: 11

Compression:

Stored size: 1.1 KB

Contents

module GoTransverseTractApi

  module Order

    class Organization

      def self.find_all
        GoTransverseTractApi.get_response_for(self)
      end

      #
      # @param {Long} eid
      #
      def self.find_by_eid eid
        GoTransverseTractApi.get_response_for(self, {eid: eid})
      end

      #
      # @param {String} name
      #
      def self.find_by_name name
        GoTransverseTractApi.get_response_for(self, {name: name})
      end

      #
      # @param {Long} billing_account_eid
      #
      def self.find_by_billing_account_eid billing_account_eid
        GoTransverseTractApi.get_response_for(self, {billing_account_eid: billing_account_eid})
      end

      #
      # @param {Long} eid
      # @param {Hash} address
      #
      def self.add_address eid, address
        GoTransverseTractApi.post_request_for(self, {eid: eid}, address, "addAddress")
      end

      #
      # @param {Long} eid
      # @param {Hash} organization
      #
      def self.update eid, organization
        GoTransverseTractApi.put_request_for(self, {eid: eid}, organization)
      end

    end

  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gotransverse-tract-api-0.3.4 lib/gotransverse-tract-api/order/organization.rb
gotransverse-tract-api-0.3.3 lib/gotransverse-tract-api/order/organization.rb
gotransverse-tract-api-0.3.2 lib/gotransverse-tract-api/order/organization.rb
gotransverse-tract-api-0.3.1 lib/gotransverse-tract-api/order/organization.rb
gotransverse-tract-api-0.3.0 lib/gotransverse-tract-api/order/organization.rb
gotransverse-tract-api-0.2.5 lib/gotransverse-tract-api/order/organization.rb
gotransverse-tract-api-0.2.4 lib/gotransverse-tract-api/order/organization.rb
gotransverse-tract-api-0.2.3 lib/gotransverse-tract-api/order/organization.rb
gotransverse-tract-api-0.2.2 lib/gotransverse-tract-api/order/organization.rb
gotransverse-tract-api-0.2.1 lib/gotransverse-tract-api/order/organization.rb
gotransverse-tract-api-0.2.0 lib/gotransverse-tract-api/order/organization.rb