Sha256: 3c85b9d37aee8b97d7e4bee274c8839034bd9c5629981ebb2dcbbd1730d6858b

Contents?: true

Size: 407 Bytes

Versions: 7

Compression:

Stored size: 407 Bytes

Contents

# frozen_string_literal: true

module CloudParty
  module Responses
    module Node
      class Plan
        def initialize(hsh)
          hsh.each do |name, value|
            instance_variable_set(:"@#{name}", value)
          end
        end

        attr_reader :list

        def to_s
          "#<Plan: #{list}>"
        end

        def inspect
          to_s
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cloud_party-0.1.7 lib/cloud_party/responses/nodes/zones/plan.rb
cloud_party-0.1.6 lib/cloud_party/responses/nodes/zones/plan.rb
cloud_party-0.1.5 lib/cloud_party/responses/nodes/zones/plan.rb
cloud_party-0.1.4 lib/cloud_party/responses/nodes/zones/plan.rb
cloud_party-0.1.3 lib/cloud_party/responses/nodes/zones/plan.rb
cloud_party-0.1.2 lib/cloud_party/responses/nodes/zones/plan.rb
cloud_party-0.1.1 lib/cloud_party/responses/nodes/zones/plan.rb