Sha256: 58af6adf5f70296043c44e0c727866b896ab057b14620cae64660a5327c8ebf0

Contents?: true

Size: 268 Bytes

Versions: 2

Compression:

Stored size: 268 Bytes

Contents

module Datacentred
  module Model
    class Version < OpenStruct
      def initialize(params)
        params.delete("links")
        super(params)
      end

      def self.show
        Request::Versions.list.map { |version| new(version) }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
datacentred-0.1.1pre lib/datacentred/model/version.rb
datacentred-0.1.0pre lib/datacentred/model/version.rb