Class: Lib::TL1::Huawei::Message::LstGponNniPort

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(did: nil, dev: nil, frame_number: nil, slot_number: nil, port_number: nil, ont_sn: nil) ⇒ LstGponNniPort

Returns a new instance of LstGponNniPort.



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/lib/tl1/huawei/message/lst_gpon_nni_port.rb', line 12

def initialize(did: nil, dev: nil, show_option: [])
  @did = did
  @dev = dev
  @show_option = show_option
  super(
    aid: hash_to_string(did: did, dev: dev),
    payload: hash_to_string(
      show_option: __show_option(*show_option)
    )
  )
end

Instance Attribute Details

#devObject (readonly)

Returns the value of attribute dev.



10
11
12
# File 'lib/lib/tl1/huawei/message/lst_gpon_nni_port.rb', line 10

def dev
  @dev
end

#didObject (readonly)

Returns the value of attribute did.



10
11
12
# File 'lib/lib/tl1/huawei/message/lst_gpon_nni_port.rb', line 10

def did
  @did
end

#frame_numberObject (readonly) Also known as: fn

Returns the value of attribute frame_number.



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

def frame_number
  @frame_number
end

#ont_snObject (readonly)

Returns the value of attribute ont_sn.



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

def ont_sn
  @ont_sn
end

#port_numberObject (readonly) Also known as: pn

Returns the value of attribute port_number.



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

def port_number
  @port_number
end

#show_optionObject (readonly)

Returns the value of attribute show_option.



10
11
12
# File 'lib/lib/tl1/huawei/message/lst_gpon_nni_port.rb', line 10

def show_option
  @show_option
end

#slot_numberObject (readonly) Also known as: sn

Returns the value of attribute slot_number.



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

def slot_number
  @slot_number
end