Sha256: c5b112aca1934eac369e79f7cc8ba2e2bc892e1b59a41c1488b4ca6cebe44b59

Contents?: true

Size: 507 Bytes

Versions: 3

Compression:

Stored size: 507 Bytes

Contents

require 'portfolio_manager/rest/api'
require 'portfolio_manager/rest/utils'

module PortfolioManager
  module REST
    ##
    # REST client configuration for PortfolioManager gem.
    class Client
      include PortfolioManager::REST::API
      attr_accessor :username, :password, :live

      def initialize(options = {})
        @live = false
        options.each do |key, value|
          instance_variable_set("@#{key}", value)
        end
        yield self if block_given?
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
portfolio_manager-0.3.0 lib/portfolio_manager/rest/client.rb
portfolio_manager-0.2.0 lib/portfolio_manager/rest/client.rb
portfolio_manager-0.1.0 lib/portfolio_manager/rest/client.rb