Class: Gnip::TwitterComplianceMessage
- Defined in:
- lib/gnip_api/gnip/twitter_compliance_message.rb
Constant Summary
Constants inherited from Message
Message::SYSTEM_MESSAGE_TYPES, Message::TWITTER_COMPLIANCE_MESSAGES
Instance Attribute Summary collapse
-
#actor ⇒ Object
readonly
Returns the value of attribute actor.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#object_type ⇒ Object
readonly
Returns the value of attribute object_type.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
-
#timestamp_ms ⇒ Object
readonly
Returns the value of attribute timestamp_ms.
-
#verb ⇒ Object
readonly
Returns the value of attribute verb.
-
#withheld_in_countries ⇒ Object
readonly
Returns the value of attribute withheld_in_countries.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ TwitterComplianceMessage
constructor
A new instance of TwitterComplianceMessage.
- #to_h ⇒ Object
- #to_json ⇒ Object
Methods inherited from Message
#activity?, build, #error?, #generate_json, #info?, #system_message?, #warn?
Constructor Details
permalink #initialize(params = {}) ⇒ TwitterComplianceMessage
Returns a new instance of TwitterComplianceMessage.
5 6 7 8 9 10 11 12 |
# 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 |
Instance Attribute Details
permalink #actor ⇒ Object (readonly)
Returns the value of attribute actor.
3 4 5 |
# File 'lib/gnip_api/gnip/twitter_compliance_message.rb', line 3 def actor @actor end |
permalink #object ⇒ Object (readonly)
Returns the value of attribute object.
3 4 5 |
# File 'lib/gnip_api/gnip/twitter_compliance_message.rb', line 3 def object @object end |
permalink #object_type ⇒ Object (readonly)
Returns the value of attribute object_type.
3 4 5 |
# File 'lib/gnip_api/gnip/twitter_compliance_message.rb', line 3 def object_type @object_type end |
permalink #raw ⇒ Object (readonly)
Returns the value of attribute raw.
3 4 5 |
# File 'lib/gnip_api/gnip/twitter_compliance_message.rb', line 3 def raw @raw end |
permalink #target ⇒ Object (readonly)
Returns the value of attribute target.
3 4 5 |
# File 'lib/gnip_api/gnip/twitter_compliance_message.rb', line 3 def target @target end |
permalink #timestamp_ms ⇒ Object (readonly)
Returns the value of attribute timestamp_ms.
3 4 5 |
# File 'lib/gnip_api/gnip/twitter_compliance_message.rb', line 3 def @timestamp_ms end |
permalink #verb ⇒ Object (readonly)
Returns the value of attribute verb.
3 4 5 |
# File 'lib/gnip_api/gnip/twitter_compliance_message.rb', line 3 def verb @verb end |
permalink #withheld_in_countries ⇒ Object (readonly)
Returns the value of attribute withheld_in_countries.
3 4 5 |
# File 'lib/gnip_api/gnip/twitter_compliance_message.rb', line 3 def withheld_in_countries @withheld_in_countries end |
Instance Method Details
permalink #to_h ⇒ Object
[View source]
14 15 16 |
# File 'lib/gnip_api/gnip/twitter_compliance_message.rb', line 14 def to_h @raw end |
permalink #to_json ⇒ Object
[View source]
22 23 24 |
# File 'lib/gnip_api/gnip/twitter_compliance_message.rb', line 22 def to_json @raw.to_json end |