Class: Lib::TL1::Huawei::Message::LstDev

Inherits:
Input
  • Object
show all
Defined in:
lib/lib/tl1/huawei/message/lst_dev.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(did: nil, dev: nil, dev_ip: nil, dev_type: nil, dev_ver: nil, onu_locate_info: nil, show_option: [], user_id: nil) ⇒ LstDev

Returns a new instance of LstDev.



13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/lib/tl1/huawei/message/lst_dev.rb', line 13

def initialize(
  did: nil,
  dev: nil,
  dev_ip: nil,
  dev_type: nil,
  dev_ver: nil,
  onu_locate_info: nil,
  show_option: [],
  user_id: nil
)

  @did = did
  @dev = dev
  @dev_ip = dev_ip
  @dt = dev_type
  @dev_ver = dev_ver
  @onu_locate_info = onu_locate_info
  @show_option = show_option
  @user_id = user_id

  super(
    aid: hash_to_string(
      did: did,
      dev: dev,
      dev_ip: dev_ip,
      dt: dev_type,
      dev_ver: dev_ver,
      onu_locate_info: onu_locate_info
    ),
    payload: hash_to_string(
      show_option: __show_option(*show_option),
      user_id: user_id
    )
  )

end

Instance Attribute Details

#devObject (readonly)

Returns the value of attribute dev.



11
12
13
# File 'lib/lib/tl1/huawei/message/lst_dev.rb', line 11

def dev
  @dev
end

#dev_ipObject (readonly)

Returns the value of attribute dev_ip.



11
12
13
# File 'lib/lib/tl1/huawei/message/lst_dev.rb', line 11

def dev_ip
  @dev_ip
end

#dev_typeObject (readonly)

Returns the value of attribute dev_type.



11
12
13
# File 'lib/lib/tl1/huawei/message/lst_dev.rb', line 11

def dev_type
  @dev_type
end

#dev_verObject (readonly)

Returns the value of attribute dev_ver.



11
12
13
# File 'lib/lib/tl1/huawei/message/lst_dev.rb', line 11

def dev_ver
  @dev_ver
end

#didObject (readonly)

Returns the value of attribute did.



11
12
13
# File 'lib/lib/tl1/huawei/message/lst_dev.rb', line 11

def did
  @did
end

#onu_locate_infoObject (readonly)

Returns the value of attribute onu_locate_info.



11
12
13
# File 'lib/lib/tl1/huawei/message/lst_dev.rb', line 11

def onu_locate_info
  @onu_locate_info
end

#showoptionObject (readonly)

Returns the value of attribute showoption.



11
12
13
# File 'lib/lib/tl1/huawei/message/lst_dev.rb', line 11

def showoption
  @showoption
end

#user_idObject (readonly)

Returns the value of attribute user_id.



11
12
13
# File 'lib/lib/tl1/huawei/message/lst_dev.rb', line 11

def user_id
  @user_id
end