Class: Rexpense::Resources::Expense
- Inherits:
-
ResourceBase
- Object
- Base
- ResourceBase
- Rexpense::Resources::Expense
- Includes:
- Attachment, Comment, Participant
- Defined in:
- lib/rexpense/resources/expense.rb
Overview
A wrapper to Rexpense expenses API
- API
-
Documentation: developers.rexpense.com/api/v1/expenses/
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods included from Attachment
#attachments, #destroy_attachment, #find_attachment
Methods included from Participant
#leave_participant, #participants
Methods included from Comment
#comments, #create_comment, #destroy_comment, #find_comment, #update_comment
Methods inherited from ResourceBase
#create, #destroy, #find, #find_all, #update
Methods inherited from Base
Constructor Details
This class inherits a constructor from Rexpense::Resources::Base
Instance Method Details
#mentionables(id) ⇒ Object
26 27 28 29 30 |
# File 'lib/rexpense/resources/expense.rb', line 26 def mentionables(id) http.get("#{endpoint_base}/#{id}/mentionables") do |response| Rexpense::Entities::UserCollection.build response.parsed_body end end |