Sha256: f9ebdcefa6c37abcea34ef795c883bac52a3959e820211d458e5144dde1c98b4

Contents?: true

Size: 639 Bytes

Versions: 5

Compression:

Stored size: 639 Bytes

Contents

module Lelylan
  class Client
    module History

      #
      # Public: Returns extended information for a given history identified from its ID.
      #
      # id - A String that represent the history ID.
      #
      # Returns Hashie The history.
      #
      def find_history(id)
        get("/histories/#{id}")
      end

      #
      # Public: Returns a list of histories related to owned devices.
      #
      # params - The Hash used to refine the search (default: {}).
      #
      # Returns Array List of histories.
      #
      def all_histories(params = {})
        get('/histories', params)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lelylan-rb-0.1.0 lib/lelylan/client/history.rb
lelylan-rb-0.0.5 lib/lelylan/client/history.rb
lelylan-rb-0.0.4 lib/lelylan/client/history.rb
lelylan-rb-0.0.3 lib/lelylan/client/history.rb
lelylan-rb-0.0.2 lib/lelylan/client/history.rb