Class: Zm::Client::AceJsnsInitializer

Inherits:
Object
  • Object
show all
Defined in:
lib/zm/client/ace/ace_jsns_initializer.rb

Overview

class for initialize account ace

Class Method Summary collapse

Class Method Details

.create(parent, json) ⇒ Object



8
9
10
11
12
# File 'lib/zm/client/ace/ace_jsns_initializer.rb', line 8

def create(parent, json)
  item = Ace.new(parent)

  update(item, json)
end

.update(item, json) ⇒ Object



14
15
16
17
18
19
20
21
# File 'lib/zm/client/ace/ace_jsns_initializer.rb', line 14

def update(item, json)
  item.instance_variable_set(:@zid, json[:zid])
  item.instance_variable_set(:@gt, json[:gt])
  item.instance_variable_set(:@right, json[:right])
  item.instance_variable_set(:@d, json[:d])

  item
end