Class: GeofenceMap

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-macrodroid.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(h) ⇒ GeofenceMap



898
899
900
# File 'lib/ruby-macrodroid.rb', line 898

def initialize(h)
  @id, @latitude, @longitude, @name, @radius = h.values
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



896
897
898
# File 'lib/ruby-macrodroid.rb', line 896

def id
  @id
end

#latitudeObject

Returns the value of attribute latitude.



896
897
898
# File 'lib/ruby-macrodroid.rb', line 896

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude.



896
897
898
# File 'lib/ruby-macrodroid.rb', line 896

def longitude
  @longitude
end

#nameObject

Returns the value of attribute name.



896
897
898
# File 'lib/ruby-macrodroid.rb', line 896

def name
  @name
end

#radiusObject

Returns the value of attribute radius.



896
897
898
# File 'lib/ruby-macrodroid.rb', line 896

def radius
  @radius
end