Sha256: 8ff52438d56ca99c370066bd68c12a3e4b23c346ab4b070615bf1875877b545d

Contents?: true

Size: 730 Bytes

Versions: 7

Compression:

Stored size: 730 Bytes

Contents

module GoTransverseTractApi

  module Order

    class Organization

      def self.find_all
        GoTransverseTractApi.get_response_for(self.class)
      end

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

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

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

    end

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gotransverse-tract-api-0.0.12 lib/gotransverse-tract-api/order/organization.rb
gotransverse-tract-api-0.0.11 lib/gotransverse-tract-api/order/organization.rb
gotransverse-tract-api-0.0.10 lib/gotransverse-tract-api/order/organization.rb
gotransverse-tract-api-0.0.9 lib/gotransverse-tract-api/order/organization.rb
gotransverse-tract-api-0.0.8 lib/gotransverse-tract-api/order/organization.rb
gotransverse-tract-api-0.0.7 lib/gotransverse-tract-api/order/organization.rb
gotransverse-tract-api-0.0.6 lib/gotransverse-tract-api/order/organization.rb