Sha256: 580a3c3e42cb6f667a79c183b3cc3d3f61f832822ebe8e750763df4862f9d555

Contents?: true

Size: 881 Bytes

Versions: 1

Compression:

Stored size: 881 Bytes

Contents

# frozen_string_literal: true

module RubyOctopus
  module Model
    # A class modeling an Environment in Octopus.
    class EnvironmentResource
      attr_accessor :id, :space_id, :name, :description, :sort_order, :use_guided_failure,
                    :allow_dynamic_infrastructure, :extension_settings, :links

      def initialize(attribute_values)
        @id = attribute_values["Id"]
        @space_id = attribute_values["SpaceId"]
        @name = attribute_values["Name"]
        @description = attribute_values["Description"]
        @sort_order = attribute_values["SortOrder"]
        @use_guided_failure = attribute_values["UseGuidedFailure"]
        @allow_dynamic_infrastructure = attribute_values["AllowDynamicInfrastructure"]
        @extension_settings = attribute_values["ExtensionSettings"]
        @links = attribute_values["Links"]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubyoctopus-0.1.0 lib/rubyoctopus/model/environmentresource.rb