class Gnip::TwitterComplianceMessage

  1. lib/gnip_api/gnip/twitter_compliance_message.rb
Superclass: Message

Attributes

Public Class methods

new (params = {})
[show source]
# File lib/gnip_api/gnip/twitter_compliance_message.rb, line 5
def initialize params = {}
  @raw = params
  @object_type = params['objectType']
  @actor = params['actor']
  @verb = params['verb']
  @timestamp_ms = params['timestampMs']
  @object = params['object']
end

Public Instance methods

to_h ()
[show source]
# File lib/gnip_api/gnip/twitter_compliance_message.rb, line 14
def to_h
  @raw
end
to_json ()
[show source]
# File lib/gnip_api/gnip/twitter_compliance_message.rb, line 22
def to_json
  @raw.to_json
end