Sha256: 2974e8536f62e009740d94ee2b9ec9b16064f21ab7e2f98fdd8d87ba4e81491f

Contents?: true

Size: 270 Bytes

Versions: 2

Compression:

Stored size: 270 Bytes

Contents

module Lingohub
  module Models
    class Resource
      def initialize(client, link)
        @client = client
        @link   = link
      end

      # Downloads the resource content
      def content
        @content ||= @client.get(@link)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lingohub-0.0.5 lib/lingohub/models/resource.rb
lingohub-0.0.4 lib/lingohub/models/resource.rb