Class: IceGrid::ServerDynamicInfo
- Inherits:
-
Object
- Object
- IceGrid::ServerDynamicInfo
- Includes:
- Ice::Inspect_mixin
- Defined in:
- lib/IceGrid/Admin.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#id ⇒ Object
Returns the value of attribute id.
-
#pid ⇒ Object
Returns the value of attribute pid.
-
#state ⇒ Object
Returns the value of attribute state.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(id = '', state = ::IceGrid::ServerState::Inactive, pid = 0, enabled = false) ⇒ ServerDynamicInfo
constructor
A new instance of ServerDynamicInfo.
Methods included from Ice::Inspect_mixin
Constructor Details
#initialize(id = '', state = ::IceGrid::ServerState::Inactive, pid = 0, enabled = false) ⇒ ServerDynamicInfo
Returns a new instance of ServerDynamicInfo.
757 758 759 760 761 762 |
# File 'lib/IceGrid/Admin.rb', line 757 def initialize(id='', state=::IceGrid::ServerState::Inactive, pid=0, enabled=false) @id = id @state = state @pid = pid @enabled = enabled end |
Instance Attribute Details
#enabled ⇒ Object
Returns the value of attribute enabled.
786 787 788 |
# File 'lib/IceGrid/Admin.rb', line 786 def enabled @enabled end |
#id ⇒ Object
Returns the value of attribute id.
786 787 788 |
# File 'lib/IceGrid/Admin.rb', line 786 def id @id end |
#pid ⇒ Object
Returns the value of attribute pid.
786 787 788 |
# File 'lib/IceGrid/Admin.rb', line 786 def pid @pid end |
#state ⇒ Object
Returns the value of attribute state.
786 787 788 |
# File 'lib/IceGrid/Admin.rb', line 786 def state @state end |
Instance Method Details
#==(other) ⇒ Object
773 774 775 776 777 778 779 780 |
# File 'lib/IceGrid/Admin.rb', line 773 def ==(other) return false if !other.is_a? ::IceGrid::ServerDynamicInfo or @id != other.id or @state != other.state or @pid != other.pid or @enabled != other.enabled true end |
#eql?(other) ⇒ Boolean
782 783 784 |
# File 'lib/IceGrid/Admin.rb', line 782 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
764 765 766 767 768 769 770 771 |
# File 'lib/IceGrid/Admin.rb', line 764 def hash _h = 0 _h = 5 * _h + @id.hash _h = 5 * _h + @state.hash _h = 5 * _h + @pid.hash _h = 5 * _h + @enabled.hash _h % 0x7fffffff end |