Class: GeofenceMap
- Inherits:
-
Object
- Object
- GeofenceMap
- Defined in:
- lib/ruby-macrodroid.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
-
#name ⇒ Object
Returns the value of attribute name.
-
#radius ⇒ Object
Returns the value of attribute radius.
Instance Method Summary collapse
-
#initialize(id: '', longitude: '', latitude: '', name: '', radius: '') ⇒ GeofenceMap
constructor
A new instance of GeofenceMap.
- #to_h ⇒ Object
Constructor Details
#initialize(id: '', longitude: '', latitude: '', name: '', radius: '') ⇒ GeofenceMap
Returns a new instance of GeofenceMap.
951 952 953 954 955 956 |
# File 'lib/ruby-macrodroid.rb', line 951 def initialize(id: '', longitude: '', latitude: '', name: '', radius: '') @id, @latitude, @longitude, @name, @radius = id, latitude, \ longitude, name, radius end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
949 950 951 |
# File 'lib/ruby-macrodroid.rb', line 949 def id @id end |
#latitude ⇒ Object
Returns the value of attribute latitude.
949 950 951 |
# File 'lib/ruby-macrodroid.rb', line 949 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude.
949 950 951 |
# File 'lib/ruby-macrodroid.rb', line 949 def longitude @longitude end |
#name ⇒ Object
Returns the value of attribute name.
949 950 951 |
# File 'lib/ruby-macrodroid.rb', line 949 def name @name end |
#radius ⇒ Object
Returns the value of attribute radius.
949 950 951 |
# File 'lib/ruby-macrodroid.rb', line 949 def radius @radius end |
Instance Method Details
#to_h ⇒ Object
958 959 960 961 962 963 964 965 966 967 968 |
# File 'lib/ruby-macrodroid.rb', line 958 def to_h() { id: @id, longitude: @longitude, latitude: @latitude, name: @name, radius: @radius } end |