Sha256: c1144d77598331da1e988ab79c6b34443cf1bd189a38b9349abfea40d3ce3baf

Contents?: true

Size: 433 Bytes

Versions: 2

Compression:

Stored size: 433 Bytes

Contents

module Thanos
  module Item
    class Series
      attr_reader :name, :resource_uri

      def initialize(data)
        @name = data['name']
        @resource_uri = data['resourceURI']
      end

      def complete
        response = Thanos::API::Response.new(RestClient.get(@resource_uri))
        results = Thanos::ResponseHolder.new(response).results
        Thanos::Factory::Series.new(results).build
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
thanos-0.6.0 lib/thanos/resources/item/series.rb
thanos-0.5.0 lib/thanos/resources/item/series.rb