Sha256: 25777eb761157dcc3f41c08e6d642d649e367a5526eaf2f8882266753982b7e7

Contents?: true

Size: 418 Bytes

Versions: 11

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

11 entries across 11 versions & 1 rubygems

Version Path
ff-ruby-server-sdk-1.1.2 lib/ff/ruby/server/sdk/dto/target.rb
ff-ruby-server-sdk-1.1.1 lib/ff/ruby/server/sdk/dto/target.rb
ff-ruby-server-sdk-1.1.0 lib/ff/ruby/server/sdk/dto/target.rb
ff-ruby-server-sdk-1.0.6 lib/ff/ruby/server/sdk/dto/target.rb
ff-ruby-server-sdk-1.0.5 lib/ff/ruby/server/sdk/dto/target.rb
ff-ruby-server-sdk-1.0.4 lib/ff/ruby/server/sdk/dto/target.rb
ff-ruby-server-sdk-1.0.3 lib/ff/ruby/server/sdk/dto/target.rb
ff-ruby-server-sdk-1.0.2 lib/ff/ruby/server/sdk/dto/target.rb
ff-ruby-server-sdk-1.0.2.rc1 lib/ff/ruby/server/sdk/dto/target.rb
ff-ruby-server-sdk-1.0.1 lib/ff/ruby/server/sdk/dto/target.rb
ff-ruby-server-sdk-1.0.0 lib/ff/ruby/server/sdk/dto/target.rb