Class: NetObj::ClientInfo
- Inherits:
-
SnapItemBase
- Object
- SnapItemBase
- NetObj::ClientInfo
- Defined in:
- lib/snapshot/items/client_info.rb
Instance Attribute Summary collapse
-
#local ⇒ Object
Returns the value of attribute local.
-
#team ⇒ Object
Returns the value of attribute team.
Attributes inherited from SnapItemBase
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(hash_or_raw) ⇒ ClientInfo
constructor
A new instance of ClientInfo.
Methods inherited from SnapItemBase
#init_hash, #init_raw, #init_unpacker, #to_a, #to_h, #to_s, #validate
Constructor Details
#initialize(hash_or_raw) ⇒ ClientInfo
Returns a new instance of ClientInfo.
9 10 11 12 13 14 15 16 |
# File 'lib/snapshot/items/client_info.rb', line 9 def initialize(hash_or_raw) @field_names = %i[ local team ] super raise 'ClientInfo includes strings that is not supported yet' end |
Instance Attribute Details
#local ⇒ Object
Returns the value of attribute local.
7 8 9 |
# File 'lib/snapshot/items/client_info.rb', line 7 def local @local end |
#team ⇒ Object
Returns the value of attribute team.
7 8 9 |
# File 'lib/snapshot/items/client_info.rb', line 7 def team @team end |
Class Method Details
.match_type?(type) ⇒ Boolean
18 19 20 |
# File 'lib/snapshot/items/client_info.rb', line 18 def self.match_type?(type) type == NETOBJTYPE_DE_CLIENTINFO end |