Class: Faker::Taxonomy::TaxonomyData
- Inherits:
-
Object
- Object
- Faker::Taxonomy::TaxonomyData
- Defined in:
- lib/ffaker/taxonomy.rb
Instance Attribute Summary collapse
-
#classification ⇒ Object
Returns the value of attribute classification.
-
#code ⇒ Object
Returns the value of attribute code.
-
#specialization ⇒ Object
Returns the value of attribute specialization.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(code, type, classification, specialization = nil) ⇒ TaxonomyData
constructor
A new instance of TaxonomyData.
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
#classification ⇒ Object
Returns the value of attribute classification.
30 31 32 |
# File 'lib/ffaker/taxonomy.rb', line 30 def classification @classification end |
#code ⇒ Object
Returns the value of attribute code.
30 31 32 |
# File 'lib/ffaker/taxonomy.rb', line 30 def code @code end |
#specialization ⇒ Object
Returns the value of attribute specialization.
30 31 32 |
# File 'lib/ffaker/taxonomy.rb', line 30 def specialization @specialization end |
#type ⇒ Object
Returns the value of attribute type.
30 31 32 |
# File 'lib/ffaker/taxonomy.rb', line 30 def type @type end |