Class: Codestrap::Object::Standard::Rest

Inherits:
Abstract
  • Object
show all
Defined in:
lib/codestrap/object/standard/rest.rb

Overview

REST derived objects

Create objects from codestraps builtin remote REST server

Class Method Summary collapse

Class Method Details

.objectsObject



17
18
19
20
21
22
23
24
25
# File 'lib/codestrap/object/standard/rest.rb', line 17

def objects
  objects = {}
  if clients
    Array(clients).each do |client|
      objects = client.getobjects
    end
  end
  objects
end

.weightInteger

Object(s) weight

Returns:

  • (Integer)


13
14
15
# File 'lib/codestrap/object/standard/rest.rb', line 13

def weight
  50
end