Class: StrawberryAPI::Marker
- Inherits:
-
Object
- Object
- StrawberryAPI::Marker
- Defined in:
- lib/strawberry_api/marker.rb
Instance Attribute Summary collapse
-
#asset_id ⇒ Object
Returns the value of attribute asset_id.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#created_by ⇒ Object
Returns the value of attribute created_by.
-
#guid ⇒ Object
Returns the value of attribute guid.
-
#id ⇒ Object
Returns the value of attribute id.
-
#in ⇒ Object
Returns the value of attribute in.
-
#out ⇒ Object
Returns the value of attribute out.
-
#text ⇒ Object
Returns the value of attribute text.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Marker
constructor
A new instance of Marker.
Constructor Details
#initialize(params = {}) ⇒ Marker
Returns a new instance of Marker
15 16 17 18 19 |
# File 'lib/strawberry_api/marker.rb', line 15 def initialize(params = {}) params.each do |k, v| instance_variable_set("@#{k.gsub(/[!@#$%^&*?']/, '')}", v) unless v.nil? end end |
Instance Attribute Details
#asset_id ⇒ Object
Returns the value of attribute asset_id
6 7 8 |
# File 'lib/strawberry_api/marker.rb', line 6 def asset_id @asset_id end |
#created_at ⇒ Object
Returns the value of attribute created_at
11 12 13 |
# File 'lib/strawberry_api/marker.rb', line 11 def created_at @created_at end |
#created_by ⇒ Object
Returns the value of attribute created_by
8 9 10 |
# File 'lib/strawberry_api/marker.rb', line 8 def created_by @created_by end |
#guid ⇒ Object
Returns the value of attribute guid
13 14 15 |
# File 'lib/strawberry_api/marker.rb', line 13 def guid @guid end |
#id ⇒ Object
Returns the value of attribute id
5 6 7 |
# File 'lib/strawberry_api/marker.rb', line 5 def id @id end |
#in ⇒ Object
Returns the value of attribute in
9 10 11 |
# File 'lib/strawberry_api/marker.rb', line 9 def in @in end |
#out ⇒ Object
Returns the value of attribute out
10 11 12 |
# File 'lib/strawberry_api/marker.rb', line 10 def out @out end |
#text ⇒ Object
Returns the value of attribute text
7 8 9 |
# File 'lib/strawberry_api/marker.rb', line 7 def text @text end |
#updated_at ⇒ Object
Returns the value of attribute updated_at
12 13 14 |
# File 'lib/strawberry_api/marker.rb', line 12 def updated_at @updated_at end |