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, deprecate_attribute_method, display_uri_attr_reader, object_attr_reader, predicate_attr_reader, uri_attr_reader

Methods included from Utils

flat_pmap, pmap

Constructor Details

- (Twitter::Relationship) initialize(attrs = {})

Initializes a new object

Parameters:

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


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

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