Class: DSU3::DObject
- Inherits:
-
Object
- Object
- DSU3::DObject
- Defined in:
- lib/dsu3/dobject.rb
Overview
Discord object
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#net ⇒ Object
readonly
Returns the value of attribute net.
Instance Method Summary collapse
-
#initialize(net, id) ⇒ DObject
constructor
A new instance of DObject.
Constructor Details
#initialize(net, id) ⇒ DObject
Returns a new instance of DObject.
10 11 12 13 |
# File 'lib/dsu3/dobject.rb', line 10 def initialize(net, id) @net = net @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/dsu3/dobject.rb', line 6 def id @id end |
#net ⇒ Object (readonly)
Returns the value of attribute net.
6 7 8 |
# File 'lib/dsu3/dobject.rb', line 6 def net @net end |