Class: SimpleMDM::DeviceGroup

Inherits:
Base
  • Object
show all
Defined in:
lib/simplemdm/device_group.rb

Class Method Summary collapse

Methods inherited from Base

build

Class Method Details

.allObject



4
5
6
7
8
# File 'lib/simplemdm/device_group.rb', line 4

def self.all
  hash, code = fetch("device_groups")

  hash['data'].collect { |d| build d }
end

.find(id) ⇒ Object



10
11
12
13
14
# File 'lib/simplemdm/device_group.rb', line 10

def self.find(id)
  hash, code = fetch("device_groups/#{id}")

  build hash['data']
end