Sha256: 3e9c64b99e578de80875cde4a12c5286b45b0a907cf1a9d59b1318f3311669a3

Contents?: true

Size: 586 Bytes

Versions: 19

Compression:

Stored size: 586 Bytes

Contents

module Totter
  class Client
    # Client methods for working with configuration.
    module Configuration
      # Get the configuration from the API.
      #
      # @return [Hashie::Mash] A hash of configuration data.
      # @example
      #   Totter.configuration
      def configuration
        get('configuration').body
      end

      # Get the featured timelines and users for Explore.
      #
      # @return [Hashie::Mash] A hash of timelines and users data.
      # @example
      #   Totter.explore
      def explore
        get('explore').body
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
totter-0.4.8 lib/totter/client/configuration.rb
totter-0.4.7 lib/totter/client/configuration.rb
totter-0.4.6 lib/totter/client/configuration.rb
totter-0.4.5 lib/totter/client/configuration.rb
totter-0.4.4 lib/totter/client/configuration.rb
totter-0.4.3 lib/totter/client/configuration.rb
totter-0.4.2 lib/totter/client/configuration.rb
totter-0.4.1 lib/totter/client/configuration.rb
totter-0.4.0 lib/totter/client/configuration.rb
totter-0.3.9 lib/totter/client/configuration.rb
totter-0.3.8 lib/totter/client/configuration.rb
totter-0.3.7 lib/totter/client/configuration.rb
totter-0.3.6 lib/totter/client/configuration.rb
totter-0.3.5 lib/totter/client/configuration.rb
totter-0.3.4 lib/totter/client/configuration.rb
totter-0.3.3 lib/totter/client/configuration.rb
totter-0.3.2 lib/totter/client/configuration.rb
totter-0.3.1 lib/totter/client/configuration.rb
totter-0.3.0 lib/totter/client/configuration.rb