Sha256: b6b6cdedf752a3a9097147efb5a412e5a2de2d6eed3c6ab0d7f2393e1dda140b

Contents?: true

Size: 1.82 KB

Versions: 5

Compression:

Stored size: 1.82 KB

Contents

module Lelylan
  class Client
    module Status

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

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

      #
      # Public: Returns a list of all existing statuses.
      #
      # params - The Hash used to refine the search (default: {}).
      #
      # Returns Array List of statuses.
      #
      def public_statuses(params = {})
        get('/statuses/public', params)
      end

      #
      # Public: Create a status and returns extended information for it.
      #
      # params - The Hash used to create the resource (default: {}).
      #
      # Returns Hashie The created status.
      #
      def create_status(params = {})
        post('/statuses', params)
      end

      #
      # Public: Update a status identified from its ID and returns extended information for it.
      #
      # id - A String that represent the status ID.
      # params - The Hash used to update the resource (default: {}).
      #
      # Returns Hashie The updated status.
      #
      def update_status(id, params = {})
        put("/statuses/#{id}", params)
      end

      #
      # Public: Delete a status identified from its ID and returns extended information for it.
      #
      # id - A String that represent the status ID.
      #
      # Returns Hashie The deleted status.
      #
      def delete_status(id)
        delete("/statuses/#{id}")
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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