Class: StrawberryAPI::Feature
- Inherits:
-
Object
- Object
- StrawberryAPI::Feature
- Defined in:
- lib/strawberry_api/feature.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Feature
constructor
A new instance of Feature.
Constructor Details
#initialize(params = {}) ⇒ Feature
Returns a new instance of Feature
11 12 13 14 15 |
# File 'lib/strawberry_api/feature.rb', line 11 def initialize(params = {}) params.each do |k, v| instance_variable_set("@#{k}", v) unless v.nil? end end |
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active
7 8 9 |
# File 'lib/strawberry_api/feature.rb', line 7 def active @active end |
#created_at ⇒ Object
Returns the value of attribute created_at
8 9 10 |
# File 'lib/strawberry_api/feature.rb', line 8 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id
5 6 7 |
# File 'lib/strawberry_api/feature.rb', line 5 def id @id end |
#name ⇒ Object
Returns the value of attribute name
6 7 8 |
# File 'lib/strawberry_api/feature.rb', line 6 def name @name end |
#updated_at ⇒ Object
Returns the value of attribute updated_at
9 10 11 |
# File 'lib/strawberry_api/feature.rb', line 9 def updated_at @updated_at end |