Module: Buffer::Client::Profile
- Included in:
- Buffer::Client
- Defined in:
- lib/buffer/profile.rb
Instance Method Summary collapse
- #profile_by_id(id) ⇒ Object
- #profiles ⇒ Object
- #schedules_by_profile_id(id) ⇒ Object
- #set_schedules(id, options) ⇒ Object
Instance Method Details
#profile_by_id(id) ⇒ Object
9 10 11 12 |
# File 'lib/buffer/profile.rb', line 9 def profile_by_id(id) response = get("/profiles/#{id}.json") Buffer::Profile.new(response) end |
#profiles ⇒ Object
4 5 6 7 |
# File 'lib/buffer/profile.rb', line 4 def profiles response = get("/profiles.json") response.map { |profile| Buffer::Profile.new(profile) } end |