Class: Twitter::Streaming::StallWarning

Inherits:
Base
  • Object
show all
Defined in:
lib/twitter/streaming/stall_warning.rb

Overview

Represents a Twitter streaming stall warning

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Method Summary

Methods inherited from Base

#[], attr_reader, define_attribute_method, define_predicate_method, define_uri_method, display_uri_attr_reader, #initialize, object_attr_reader, predicate_attr_reader, uri_attr_reader

Methods included from Utils

flat_pmap, pmap

Constructor Details

This class inherits a constructor from Twitter::Base

Instance Attribute Details

#codeInteger (readonly)

Returns the percent full value

Examples:

stall_warning.percent_full

Returns:

  • (Integer)


27
28
29
# File 'lib/twitter/streaming/stall_warning.rb', line 27

def code
  @code
end

#messageInteger (readonly)

Returns the percent full value

Examples:

stall_warning.percent_full

Returns:

  • (Integer)


27
28
29
# File 'lib/twitter/streaming/stall_warning.rb', line 27

def message
  @message
end

#percent_fullInteger (readonly)

Returns the percent full value

Examples:

stall_warning.percent_full

Returns:

  • (Integer)


27
28
29
# File 'lib/twitter/streaming/stall_warning.rb', line 27

def percent_full
  @percent_full
end