Sha256: fb906954cde7f22f2ff8d56e70855173b9a9d0692330034d4af39cc549e03fc2

Contents?: true

Size: 857 Bytes

Versions: 1

Compression:

Stored size: 857 Bytes

Contents

# frozen_string_literal: true

require File.expand_path('ruby_instagram/error', __dir__)
require File.expand_path('ruby_instagram/configuration', __dir__)
require File.expand_path('ruby_instagram/api', __dir__)
require File.expand_path('ruby_instagram/client', __dir__)
require File.expand_path('ruby_instagram/response', __dir__)

module RubyInstagram
  extend Configuration

  # Alias for Instagram::Client.new
  #
  # @return [Instagram::Client]
  def self.client(options = {})
    RubyInstagram::Client.new(options)
  end

  # Delegate to Instagram::Client
  def self.method_missing(method, *args, &block)
    return super unless client.respond_to?(method)

    client.send(method, *args, &block)
  end

  # Delegate to Instagram::Client
  def self.respond_to?(method, include_all = false)
    client.respond_to?(method, include_all) || super
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby_instagram-0.1.0 lib/ruby_instagram.rb