Class: Faker::Taxonomy::TaxonomyData

Inherits:
Object
  • Object
show all
Defined in:
lib/ffaker/taxonomy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, type, classification, specialization = nil) ⇒ TaxonomyData

Returns a new instance of TaxonomyData.



31
32
33
34
35
36
# File 'lib/ffaker/taxonomy.rb', line 31

def initialize(code, type, classification, specialization=nil)
  @code = code
  @type = type
  @classification = classification
  @specialization = specialization
end

Instance Attribute Details

#classificationObject

Returns the value of attribute classification.



30
31
32
# File 'lib/ffaker/taxonomy.rb', line 30

def classification
  @classification
end

#codeObject

Returns the value of attribute code.



30
31
32
# File 'lib/ffaker/taxonomy.rb', line 30

def code
  @code
end

#specializationObject

Returns the value of attribute specialization.



30
31
32
# File 'lib/ffaker/taxonomy.rb', line 30

def specialization
  @specialization
end

#typeObject

Returns the value of attribute type.



30
31
32
# File 'lib/ffaker/taxonomy.rb', line 30

def type
  @type
end