Sha256: ad776dc9a2fb10a5f11bfffd520f07cc0fb01ecb159219ea994b9ed438d14d52

Contents?: true

Size: 874 Bytes

Versions: 27

Compression:

Stored size: 874 Bytes

Contents

module GoTransverseTractApi

  module Service

    class ServiceDeviceInventoryItem

      class << self

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

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

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

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

      end

    end

  end

end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
gotransverse-tract-api-0.5.2 lib/gotransverse-tract-api/service/service_device_inventory_item.rb
gotransverse-tract-api-0.5.1 lib/gotransverse-tract-api/service/service_device_inventory_item.rb
gotransverse-tract-api-0.5.0 lib/gotransverse-tract-api/service/service_device_inventory_item.rb
gotransverse-tract-api-0.4.3 lib/gotransverse-tract-api/service/service_device_inventory_item.rb
gotransverse-tract-api-0.4.2 lib/gotransverse-tract-api/service/service_device_inventory_item.rb
gotransverse-tract-api-0.4.1 lib/gotransverse-tract-api/service/service_device_inventory_item.rb
gotransverse-tract-api-0.4.0 lib/gotransverse-tract-api/service/service_device_inventory_item.rb
gotransverse-tract-api-0.3.4 lib/gotransverse-tract-api/service/service_device_inventory_item.rb
gotransverse-tract-api-0.3.3 lib/gotransverse-tract-api/service/service_device_inventory_item.rb
gotransverse-tract-api-0.3.2 lib/gotransverse-tract-api/service/service_device_inventory_item.rb
gotransverse-tract-api-0.3.1 lib/gotransverse-tract-api/service/service_device_inventory_item.rb
gotransverse-tract-api-0.3.0 lib/gotransverse-tract-api/service/service_device_inventory_item.rb
gotransverse-tract-api-0.2.5 lib/gotransverse-tract-api/service/service_device_inventory_item.rb
gotransverse-tract-api-0.2.4 lib/gotransverse-tract-api/service/service_device_inventory_item.rb
gotransverse-tract-api-0.2.3 lib/gotransverse-tract-api/service/service_device_inventory_item.rb
gotransverse-tract-api-0.2.2 lib/gotransverse-tract-api/service/service_device_inventory_item.rb
gotransverse-tract-api-0.2.1 lib/gotransverse-tract-api/service/service_device_inventory_item.rb
gotransverse-tract-api-0.2.0 lib/gotransverse-tract-api/service/service_device_inventory_item.rb
gotransverse-tract-api-0.1.12 lib/gotransverse-tract-api/service/service_device_inventory_item.rb
gotransverse-tract-api-0.1.11 lib/gotransverse-tract-api/service/service_device_inventory_item.rb