Class: QspecFeature
- Inherits:
-
Object
- Object
- QspecFeature
- Defined in:
- lib/qspec_feature/qspec_feature.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#fileName ⇒ Object
Returns the value of attribute fileName.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#scenarios ⇒ Object
Returns the value of attribute scenarios.
-
#versionId ⇒ Object
Returns the value of attribute versionId.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id, name, content, versionId, fileName, scenarios) ⇒ QspecFeature
constructor
A new instance of QspecFeature.
Constructor Details
#initialize(id, name, content, versionId, fileName, scenarios) ⇒ QspecFeature
Returns a new instance of QspecFeature.
4 5 6 7 8 9 10 11 |
# File 'lib/qspec_feature/qspec_feature.rb', line 4 def initialize(id, name, content, versionId, fileName, scenarios) @id = id @name = name @content = content @versionId = versionId @fileName = fileName @scenarios = scenarios end |
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
2 3 4 |
# File 'lib/qspec_feature/qspec_feature.rb', line 2 def content @content end |
#fileName ⇒ Object
Returns the value of attribute fileName.
2 3 4 |
# File 'lib/qspec_feature/qspec_feature.rb', line 2 def fileName @fileName end |
#id ⇒ Object
Returns the value of attribute id.
2 3 4 |
# File 'lib/qspec_feature/qspec_feature.rb', line 2 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/qspec_feature/qspec_feature.rb', line 2 def name @name end |
#scenarios ⇒ Object
Returns the value of attribute scenarios.
2 3 4 |
# File 'lib/qspec_feature/qspec_feature.rb', line 2 def scenarios @scenarios end |
#versionId ⇒ Object
Returns the value of attribute versionId.
2 3 4 |
# File 'lib/qspec_feature/qspec_feature.rb', line 2 def versionId @versionId end |
Class Method Details
.from_json(data) ⇒ Object
13 14 15 |
# File 'lib/qspec_feature/qspec_feature.rb', line 13 def self.from_json data QspecFeature.new data['id'], data['name'], data['content'], data['versionId'], data['fileName'], data['scenarios'] end |