Sha256: 263e2e1ea4f3b87b7f0ad57cf42d4f61db4cfc77e779894c652f6f759c67253b

Contents?: true

Size: 214 Bytes

Versions: 20

Compression:

Stored size: 214 Bytes

Contents

module Rubydora
  class Datastream
    def entity_size(response)
      if content_length = response["content-length"]
        content_length.to_i
      else
        response.body.length
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
ddr-models-2.11.0 config/initializers/rubydora_monkey_patch.rb
ddr-models-2.10.2 config/initializers/rubydora_monkey_patch.rb
ddr-models-2.10.1 config/initializers/rubydora_monkey_patch.rb
ddr-models-2.10.0 config/initializers/rubydora_monkey_patch.rb
ddr-models-2.10.0.rc2 config/initializers/rubydora_monkey_patch.rb
ddr-models-2.10.0.rc1 config/initializers/rubydora_monkey_patch.rb
ddr-models-2.9.2 config/initializers/rubydora_monkey_patch.rb
ddr-models-2.9.1 config/initializers/rubydora_monkey_patch.rb
ddr-models-2.9.0 config/initializers/rubydora_monkey_patch.rb
ddr-models-2.9.0.rc1 config/initializers/rubydora_monkey_patch.rb
ddr-models-2.8.0 config/initializers/rubydora_monkey_patch.rb
ddr-models-2.8.0.rc1 config/initializers/rubydora_monkey_patch.rb
ddr-models-2.7.6 config/initializers/rubydora_monkey_patch.rb
ddr-models-2.7.5 config/initializers/rubydora_monkey_patch.rb
ddr-models-2.7.4 config/initializers/rubydora_monkey_patch.rb
ddr-models-2.7.3 config/initializers/rubydora_monkey_patch.rb
ddr-models-2.7.2 config/initializers/rubydora_monkey_patch.rb
ddr-models-2.7.1 config/initializers/rubydora_monkey_patch.rb
ddr-models-2.7.0 config/initializers/rubydora_monkey_patch.rb
ddr-models-2.7.0.rc1 config/initializers/rubydora_monkey_patch.rb