Class: Discordrb::Integration

Inherits:
Object
  • Object
show all
Includes:
IDObject
Defined in:
lib/discordrb/data/integration.rb

Overview

Server integration

Instance Attribute Summary collapse

Attributes included from IDObject

#id

Instance Method Summary collapse

Methods included from IDObject

#==, #creation_time, synthesise

Instance Attribute Details

#accountIntegrationAccount (readonly)



80
81
82
# File 'lib/discordrb/data/integration.rb', line 80

def 
  @account
end

#emoticontrue, false (readonly) Also known as: emoticon?



67
68
69
# File 'lib/discordrb/data/integration.rb', line 67

def emoticon
  @emoticon
end

#enabledtrue, false (readonly)



74
75
76
# File 'lib/discordrb/data/integration.rb', line 74

def enabled
  @enabled
end

#expire_behaviourSymbol (readonly) Also known as: expire_behavior



86
87
88
# File 'lib/discordrb/data/integration.rb', line 86

def expire_behaviour
  @expire_behaviour
end

#expire_grace_periodInteger (readonly)



90
91
92
# File 'lib/discordrb/data/integration.rb', line 90

def expire_grace_period
  @expire_grace_period
end

#nameString (readonly)



55
56
57
# File 'lib/discordrb/data/integration.rb', line 55

def name
  @name
end

#revokedtrue, false (readonly)



96
97
98
# File 'lib/discordrb/data/integration.rb', line 96

def revoked
  @revoked
end

#role_idInteger? (readonly)



64
65
66
# File 'lib/discordrb/data/integration.rb', line 64

def role_id
  @role_id
end

#serverServer (readonly)



58
59
60
# File 'lib/discordrb/data/integration.rb', line 58

def server
  @server
end

#subscriber_countInteger? (readonly)



93
94
95
# File 'lib/discordrb/data/integration.rb', line 93

def subscriber_count
  @subscriber_count
end

#synced_atTime (readonly)



83
84
85
# File 'lib/discordrb/data/integration.rb', line 83

def synced_at
  @synced_at
end

#syncingtrue, false (readonly)



77
78
79
# File 'lib/discordrb/data/integration.rb', line 77

def syncing
  @syncing
end

#typeString (readonly)



71
72
73
# File 'lib/discordrb/data/integration.rb', line 71

def type
  @type
end

#userUser (readonly)



61
62
63
# File 'lib/discordrb/data/integration.rb', line 61

def user
  @user
end

Instance Method Details

#inspectObject

The inspect method is overwritten to give more useful output



121
122
123
# File 'lib/discordrb/data/integration.rb', line 121

def inspect
  "<Integration name=#{@name} id=#{@id} type=#{@type} enabled=#{@enabled}>"
end