Class: Lib::TL1::Huawei::Message::LstPort

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(port_alias: nil, dev: nil, did: nil, onu_locate_info: nil, frame_number: nil, slot_number: nil, port_number: nil, port_type: nil, port_status: nil, db_only: nil, show_option: nil) ⇒ LstPort

Returns a new instance of LstPort.



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
49
50
51
52
53
# File 'lib/lib/tl1/huawei/message/lst_port.rb', line 14

def initialize(
  port_alias: nil,
  dev: nil,
  did: nil,
  onu_locate_info: nil,
  frame_number: nil,
  slot_number: nil,
  port_number: nil,
  port_type: nil,
  port_status: nil,
  db_only: nil,
  show_option: nil
)
  @port_alias = port_alias
  @dev = dev
  @did = did
  @onu_locate_info = onu_locate_info
  @frame_number = frame_number
  @slot_number = slot_number
  @port_number = port_number
  @port_type = port_type
  @port_status = port_status
  @db_only = db_only
  @show_option = show_option
  super(
    aid: hash_to_string(
      alias: port_alias,
      dev: dev,
      did: did,
      onu_locate_info: onu_locate_info,
      fn: frame_number,
      sn: slot_number,
      pn: port_number,
      pt: port_type,
      pstat: port_status,
      db_only: db_only
    ),
    payload: __show_option(*show_option)
  )
end

Instance Attribute Details

#db_onlyObject (readonly)

Returns the value of attribute db_only.



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

def db_only
  @db_only
end

#devObject (readonly)

Returns the value of attribute dev.



11
12
13
# File 'lib/lib/tl1/huawei/message/lst_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_port.rb', line 11

def did
  @did
end

#frame_numberObject (readonly)

Returns the value of attribute frame_number.



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

def frame_number
  @frame_number
end

#onu_locate_infoObject (readonly)

Returns the value of attribute onu_locate_info.



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

def onu_locate_info
  @onu_locate_info
end

#port_aliasObject (readonly)

Returns the value of attribute port_alias.



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

def port_alias
  @port_alias
end

#port_numberObject (readonly)

Returns the value of attribute port_number.



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

def port_number
  @port_number
end

#port_statusObject (readonly)

Returns the value of attribute port_status.



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

def port_status
  @port_status
end

#port_typeObject (readonly)

Returns the value of attribute port_type.



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

def port_type
  @port_type
end

#show_optionObject (readonly)

Returns the value of attribute show_option.



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

def show_option
  @show_option
end

#slot_numberObject (readonly)

Returns the value of attribute slot_number.



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

def slot_number
  @slot_number
end