Sha256: fb5bbe69fe580d739b33c31dd5a2922f855c3a6826eadbeced5550124d4fb630

Contents?: true

Size: 740 Bytes

Versions: 9

Compression:

Stored size: 740 Bytes

Contents

module Dnsimple
  module Struct

    class ExtendedAttribute < Base

      class Option < Base
        # The option name
        attr_accessor :title

        # The option value
        attr_accessor :value

        # A long description of the option
        attr_accessor :description
      end

      # The extended attribute name
      attr_accessor :name

      # A description of the extended attribute
      attr_accessor :description

      # Boolean indicating if the extended attribute is required
      attr_accessor :required

      def options
        @options ||= []
      end

      def options=(opts)
        @options = opts.map do |opt|
          ExtendedAttribute::Option.new(opt)
        end
      end

    end

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
dnsimple-3.0.0.pre.beta2 lib/dnsimple/struct/extended_attribute.rb
dnsimple-3.0.0.pre.beta1 lib/dnsimple/struct/extended_attribute.rb
dnsimple-2.2.0 lib/dnsimple/struct/extended_attribute.rb
dnsimple-2.1.1 lib/dnsimple/struct/extended_attribute.rb
dnsimple-2.1.0 lib/dnsimple/struct/extended_attribute.rb
dnsimple-2.0.0 lib/dnsimple/struct/extended_attribute.rb
dnsimple-2.0.0.alpha5 lib/dnsimple/struct/extended_attribute.rb
dnsimple-2.0.0.alpha4 lib/dnsimple/struct/extended_attribute.rb
dnsimple-2.0.0.alpha3 lib/dnsimple/struct/extended_attribute.rb