Sha256: 8cf41935ed0c0f2444291a2605e58fd3f34a85a74d45e038b566116f89ff8b74

Contents?: true

Size: 531 Bytes

Versions: 1

Compression:

Stored size: 531 Bytes

Contents

# frozen_string_literal: true

require_relative "theone/version"
require_relative "theone/client"
require_relative "theone/quote"
require_relative "theone/movie"

module Theone
  # Main SDK entry point
  class Sdk
    attr_reader :client

    def initialize(**options)
      @client = Client.new(**options)
    end

    def movies
      Movie.all(client)
    end

    def movie(id)
      Movie.one(client, id)
    end

    def quotes
      Quote.all(client)
    end

    def quote(id)
      Quote.one(client, id)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
juggy-theone-sdk-0.1.1 lib/theone.rb