Sha256: baf99c0ef53811c1bdaa945447f2cb2a9c8731e9b64970f0b8653d2ed65c1724

Contents?: true

Size: 418 Bytes

Versions: 1

Compression:

Stored size: 418 Bytes

Contents

class Target

  attr_accessor :name, :identifier, :attributes, :is_private, :private_attributes

  def initialize(

    name,
    identifier = name,
    attributes = {},
    is_private = false
  )

    @name = name
    @identifier = identifier
    @attributes = attributes
    @is_private = is_private
    @private_attributes = Set[]
  end

  def is_valid

    @identifier != nil && !@identifier.strip.empty?
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ff-ruby-server-sdk-1.1.3 lib/ff/ruby/server/sdk/dto/target.rb