Class: Messenger::People

Inherits:
Resource show all
Defined in:
lib/messenger/people.rb

Instance Method Summary collapse

Methods inherited from Resource

#build_uri

Constructor Details

#initialize(*args) ⇒ People

Returns a new instance of People.



8
9
10
11
# File 'lib/messenger/people.rb', line 8

def initialize(*args)
  args = args.flatten(1) unless !args[0].is_a?(Array)
  super(args)
end

Instance Method Details

#my_profileObject



13
14
15
16
# File 'lib/messenger/people.rb', line 13

def my_profile
  profile_json = get build_uri(my_profile_path)
  Person.new profile_json
end