Class: Lib::TL1::Huawei::Message::LstOntPort

Inherits:
Input
  • Object
show all
Defined in:
lib/lib/tl1/huawei/message/lst_ont_port.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_id: nil, ont_name: nil, ont_alias: nil, ont_port_type: :eth, ont_port_id: nil, show_option: []) ⇒ LstOntPort



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
# File 'lib/lib/tl1/huawei/message/lst_ont_port.rb', line 14

def initialize(
  did: nil, dev: nil, frame_number: nil, slot_number: nil, port_number: nil, ont_id: nil,
  ont_name: nil, ont_alias: nil, ont_port_type: :eth, ont_port_id: nil, show_option: []
)
  @did = did
  @dev = dev
  @frame_number = frame_number
  @slot_number = slot_number
  @port_number = port_number
  @ont_id = ont_id
  @ont_name = ont_name
  @ont_alias = ont_alias
  @ont_port_id = ont_port_id
  @ont_port_type = ont_port_type
  @show_option = show_option
  super(
    aid: hash_to_string(
      did: did, dev: dev, fn: frame_number, sn: slot_number, pn: port_number,
      ont_id: ont_id, ont_name: ont_name, ont_alias: ont_alias,
      ont_port_type: ont_port_type, ont_port_id: ont_port_id
    ),
    payload: hash_to_string(
      show_option: __show_option(*show_option)
    )
  )
end

Instance Attribute Details

#devObject (readonly)

Returns the value of attribute dev.



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

def dev
  @dev
end

#didObject (readonly)

Returns the value of attribute did.



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

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_ont_port.rb', line 11

def frame_number
  @frame_number
end

#ont_aliasObject (readonly)

Returns the value of attribute ont_alias.



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

def ont_alias
  @ont_alias
end

#ont_idObject (readonly)

Returns the value of attribute ont_id.



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

def ont_id
  @ont_id
end

#ont_nameObject (readonly)

Returns the value of attribute ont_name.



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

def ont_name
  @ont_name
end

#ont_port_idObject (readonly)

Returns the value of attribute ont_port_id.



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

def ont_port_id
  @ont_port_id
end

#ont_port_typeObject (readonly)

Returns the value of attribute ont_port_type.



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

def ont_port_type
  @ont_port_type
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_ont_port.rb', line 11

def port_number
  @port_number
end

#show_optionObject (readonly)

Returns the value of attribute show_option.



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

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_ont_port.rb', line 11

def slot_number
  @slot_number
end