Class: DiscordRDA::Integration
- Inherits:
-
Entity
- Object
- Entity
- DiscordRDA::Integration
show all
- Defined in:
- lib/discord_rda/entity/support.rb
Instance Attribute Summary
Attributes inherited from Entity
#id
Instance Method Summary
collapse
Methods inherited from Entity
#==, attribute, #created_at, from_hash, #hash, #initialize, #inspect, #to_h, #to_json
Instance Method Details
#account ⇒ Object
314
315
316
|
# File 'lib/discord_rda/entity/support.rb', line 314
def account
@raw_data['account'] || {}
end
|
#application ⇒ Object
322
323
324
|
# File 'lib/discord_rda/entity/support.rb', line 322
def application
@raw_data['application'] ? Application.new(@raw_data['application']) : nil
end
|
#synced_at ⇒ Object
318
319
320
|
# File 'lib/discord_rda/entity/support.rb', line 318
def synced_at
@raw_data['synced_at'] ? Time.parse(@raw_data['synced_at']) : nil
end
|
#user ⇒ Object
310
311
312
|
# File 'lib/discord_rda/entity/support.rb', line 310
def user
@raw_data['user'] ? User.new(@raw_data['user']) : nil
end
|