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