Sha256: 50f95090be45ddf8ff935c648db6d951a7f8d64100c5c84218e5ed2d5667a81a

Contents?: true

Size: 327 Bytes

Versions: 3

Compression:

Stored size: 327 Bytes

Contents

module Brightbox
  class DetailedServerGroup < ServerGroup
    def to_row
      row_attributes = attributes
      row_attributes[:firewall_policy] = firewall_policy && firewall_policy.id
      row_attributes.to_h
    end

    def self.default_field_order
      %i[id name servers firewall_policy description]
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
brightbox-cli-5.0.0 lib/brightbox-cli/detailed_server_group.rb
brightbox-cli-5.0.0.rc2 lib/brightbox-cli/detailed_server_group.rb
brightbox-cli-5.0.0.rc1 lib/brightbox-cli/detailed_server_group.rb