Sha256: 4cf3c98b95c19601e21e0ee465683c09591ad8d5e5f0c231a7387f3dae5d020a

Contents?: true

Size: 404 Bytes

Versions: 1

Compression:

Stored size: 404 Bytes

Contents

module Taric
  module Operation
    module Base
      BASE_URL_FN = -> version {"https://{host}/api/lol/{region}/#{version}"}

      # Converts [Time] to [Fixnum], or returns argument.
      #
      # @param time [Time] Time to convert to epoch.
      # @return [Fixnum] Time in epoch.
      def epoch_time(time)
        return time.to_i if time.instance_of? Time
        time
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
taric-0.3.3 lib/taric/operation/base.rb