Class: StrawberryAPI::Marker

Inherits:
Object
  • Object
show all
Defined in:
lib/strawberry_api/marker.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject

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_atObject

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_byObject

Returns the value of attribute created_by



8
9
10
# File 'lib/strawberry_api/marker.rb', line 8

def created_by
  @created_by
end

#guidObject

Returns the value of attribute guid



13
14
15
# File 'lib/strawberry_api/marker.rb', line 13

def guid
  @guid
end

#idObject

Returns the value of attribute id



5
6
7
# File 'lib/strawberry_api/marker.rb', line 5

def id
  @id
end

#inObject

Returns the value of attribute in



9
10
11
# File 'lib/strawberry_api/marker.rb', line 9

def in
  @in
end

#outObject

Returns the value of attribute out



10
11
12
# File 'lib/strawberry_api/marker.rb', line 10

def out
  @out
end

#textObject

Returns the value of attribute text



7
8
9
# File 'lib/strawberry_api/marker.rb', line 7

def text
  @text
end

#updated_atObject

Returns the value of attribute updated_at



12
13
14
# File 'lib/strawberry_api/marker.rb', line 12

def updated_at
  @updated_at
end