Class: Zm::Client::LicenseJsnsInitializer

Inherits:
Object
  • Object
show all
Defined in:
lib/zm/client/license/license_jsns_initializer.rb

Overview

class for initialize license

Class Method Summary collapse

Class Method Details

.create(parent, json) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/zm/client/license/license_jsns_initializer.rb', line 8

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

  json[:attr].each do |a|
    item.instance_variable_set(Utils.arrow_name(a[:name]), a[:_content])
  end

  item
end