Sha256: 98a736f842bace9ebe1e6507db6d2a77d6aa26a515a81972f609bde41a50212f

Contents?: true

Size: 486 Bytes

Versions: 14

Compression:

Stored size: 486 Bytes

Contents

module Access
  class Device
    include Access::MuchMeta

    def self.process_batch(chunk)
      chunk.map { |device| new(device) }
    end

    def initialize(values)
      @used_fields = []
      set_up_methods(values)
      set_values(values)
    end

    def self.search(member_key, options = {})
      Access::Api.new.search_devices member_key, options
    end

    def self.find(member_key, options = {})
      Access::Api.new.find_device member_key, options
    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
access-2.3.0.pre.rc2 lib/access/device.rb
access-2.3.0.pre.rc1 lib/access/device.rb
access-2.2.0 lib/access/device.rb
access-2.1.5 lib/access/device.rb
access-2.1.4 lib/access/device.rb
access-2.1.3 lib/access/device.rb
access-2.1.2 lib/access/device.rb
access-2.1.1 lib/access/device.rb
access-2.1.0 lib/access/device.rb
access-2.0.55 lib/access/device.rb
access-2.0.54 lib/access/device.rb
access-2.0.53 lib/access/device.rb
access-2.0.52 lib/access/device.rb
access-2.0.51 lib/access/device.rb