Class: Faker::Cli::Field

Inherits:
Object
  • Object
show all
Defined in:
lib/faker/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, type, arguments) ⇒ Field

Returns a new instance of Field.



15
16
17
18
# File 'lib/faker/cli.rb', line 15

def initialize name, type, arguments
  @name, @type = name, type
  @arguments = arguments.map { |arg| Faker::Cli.int? arg }
end

Instance Attribute Details

#argumentsObject

Returns the value of attribute arguments.



13
14
15
# File 'lib/faker/cli.rb', line 13

def arguments
  @arguments
end

#nameObject

Returns the value of attribute name.



13
14
15
# File 'lib/faker/cli.rb', line 13

def name
  @name
end

#typeObject

Returns the value of attribute type.



13
14
15
# File 'lib/faker/cli.rb', line 13

def type
  @type
end