Class: Messenger::People
Instance Method Summary collapse
-
#initialize(*args) ⇒ People
constructor
A new instance of People.
- #my_profile ⇒ Object
Methods inherited from Resource
Constructor Details
#initialize(*args) ⇒ 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_profile ⇒ Object
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 |