Class: Twitter::Relationship

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

Instance Attribute Summary

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Base

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

Methods included from Utils

flat_pmap, pmap

Constructor Details

#initialize(attrs = {}) ⇒ Twitter::Relationship

Initializes a new object

Parameters:

  • attrs (Hash) (defaults to: {})


12
13
14
15
# File 'lib/twitter/relationship.rb', line 12

def initialize(attrs = {})
  super
  @attrs = attrs[:relationship]
end