Class: Quark::MdkDiscovery::Protocol::Active

Inherits:
Object
  • Object
show all
Extended by:
DatawireQuarkCore::Static
Defined in:
lib/mdk_discovery/protocol.rb

Constant Summary

Constants included from DatawireQuarkCore::Static

DatawireQuarkCore::Static::Unassigned

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from DatawireQuarkCore::Static

_lazy_statics, static, unlazy_statics

Constructor Details

#initializeActive

Returns a new instance of Active.



387
388
389
390
391
392
# File 'lib/mdk_discovery/protocol.rb', line 387

def initialize()
    
    super()

    nil
end

Instance Attribute Details

#nodeObject

Returns the value of attribute node.



379
380
381
# File 'lib/mdk_discovery/protocol.rb', line 379

def node
  @node
end

#ttlObject

Returns the value of attribute ttl.



379
380
381
# File 'lib/mdk_discovery/protocol.rb', line 379

def ttl
  @ttl
end

Instance Method Details

#__init_fields__Object



435
436
437
438
439
440
441
442
# File 'lib/mdk_discovery/protocol.rb', line 435

def __init_fields__()
    
    super
    self.node = nil
    self.ttl = nil

    nil
end

#_getClassObject



397
398
399
400
401
402
# File 'lib/mdk_discovery/protocol.rb', line 397

def _getClass()
    
    return "mdk_discovery.protocol.Active"

    nil
end

#_getField(name) ⇒ Object



404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
# File 'lib/mdk_discovery/protocol.rb', line 404

def _getField(name)
    
    if ((name) == ("_json_type"))
        return ::Quark.mdk_discovery.protocol.Active._json_type
    end
    if ((name) == ("node"))
        return (self).node
    end
    if ((name) == ("ttl"))
        return (self).ttl
    end
    return nil

    nil
end

#_setField(name, value) ⇒ Object



420
421
422
423
424
425
426
427
428
429
430
431
432
433
# File 'lib/mdk_discovery/protocol.rb', line 420

def _setField(name, value)
    
    if ((name) == ("_json_type"))
        ::Quark.mdk_discovery.protocol.Active._json_type = ::DatawireQuarkCore.cast(value) { ::String }
    end
    if ((name) == ("node"))
        (self).node = ::DatawireQuarkCore.cast(value) { ::Quark.mdk_discovery.Node }
    end
    if ((name) == ("ttl"))
        (self).ttl = ::DatawireQuarkCore.cast(value) { ::Float }
    end

    nil
end