Class: DSU3::DObject

Inherits:
Object
  • Object
show all
Defined in:
lib/dsu3/dobject.rb

Overview

Discord object

Direct Known Subclasses

Channel, Guild, Invite, Message

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(net, id) ⇒ DObject

Returns a new instance of DObject.

Parameters:

  • net (Array)

    Net object

  • id (String, Integer)


10
11
12
13
# File 'lib/dsu3/dobject.rb', line 10

def initialize(net, id)
  @net = net
  @id = id
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



6
7
8
# File 'lib/dsu3/dobject.rb', line 6

def id
  @id
end

#netObject (readonly)

Returns the value of attribute net.



6
7
8
# File 'lib/dsu3/dobject.rb', line 6

def net
  @net
end