Class: RubyQC::API::SomeOf

Inherits:
Struct
  • Object
show all
Defined in:
lib/rubyqc/api.rb

Direct Known Subclasses

OneOf

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Struct

rubyqc

Instance Attribute Details

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



21
22
23
# File 'lib/rubyqc/api.rb', line 21

def args
  @args
end

#numObject

Returns the value of attribute num

Returns:

  • (Object)

    the current value of num



21
22
23
# File 'lib/rubyqc/api.rb', line 21

def num
  @num
end

Instance Method Details

#rubyqcObject



22
23
24
# File 'lib/rubyqc/api.rb', line 22

def rubyqc
  args.sample(num).rubyqc
end