Sha256: 06078c38e9c3b38e7f54fd926d731c3ad6e692a7c1f02e0cb3a0181ed6142667

Contents?: true

Size: 674 Bytes

Versions: 4

Compression:

Stored size: 674 Bytes

Contents

module RSqoot
  module Commission

    # Retrieve information of commissions based on the following parameters
    #
    # @param [String] :to Start date
    # @param [String] :from End date
    #
    # @return [RSqoot::SqootCommission]
    def commissions(options={})
      options = update_by_expire_time options
      if commissions_not_latest?(options)
        @rsqoot_commissions = get('commissions', options, SqootCommission)
        @rsqoot_commissions = @rsqoot_commissions.commissions if @rsqoot_commissions
      end
      logger({uri: sqoot_query_uri, records: @rsqoot_commissions, type: 'commissions', opts: options})
      @rsqoot_commissions
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rsqoot-0.5.5 lib/rsqoot/commission.rb
rsqoot-0.5.4 lib/rsqoot/commission.rb
rsqoot-0.5.3 lib/rsqoot/commission.rb
rsqoot-0.5.2 lib/rsqoot/commission.rb