Sha256: 91b6d6025616e91029ea5458fd4eb2fa4def7a86b44cda72bc80902eeeb5f18a

Contents?: true

Size: 336 Bytes

Versions: 2

Compression:

Stored size: 336 Bytes

Contents

module Azure
  module ServiceRuntime
    class LocalResource
      attr_accessor :name, :path, :size
      alias :maximumSizeInMegabytes :size
      alias :root_path :path

      def initialize(node)
        self.name = node["name"]
        self.path = node["path"]
        self.size = node["sizeInMB"].to_i
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure-0.1.1 lib/azure/service_runtime/local_resource.rb
azure-0.1.0 lib/azure/service_runtime/local_resource.rb