Sha256: 9b5554935a7fa10a34a90c02eca8e89257830ceba6bd3da6db8d71037f8d9b06

Contents?: true

Size: 567 Bytes

Versions: 3

Compression:

Stored size: 567 Bytes

Contents

module Rexpense
  module Resources
    #
    # A wrapper to Rexpense activity API
    #
    # [API]
    #   Documentation: http://developers.rexpense.com/api/v1/activities/
    #
    class Activity < Base
      #
      # Get user activities
      #
      # [API]
      #   Method: <tt>GET /api/v1/activities</tt>
      #
      #   Documentation: http://developers.rexpense.com/api/activities#index
      def find_all
        http.get('/activities') do |response|
          Rexpense::Entities::ActivityCollection.build response
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rexpense-2.1.0 lib/rexpense/resources/activity.rb
rexpense-2.0.0 lib/rexpense/resources/activity.rb
rexpense-1.0.0 lib/rexpense/resources/activity.rb