Class: Tgios::FakeBeacon
- Inherits:
-
Object
- Object
- Tgios::FakeBeacon
- Defined in:
- lib/tgios/beacon_manager.rb
Instance Attribute Summary collapse
-
#major ⇒ Object
Returns the value of attribute major.
-
#minor ⇒ Object
Returns the value of attribute minor.
-
#proximityUUID ⇒ Object
Returns the value of attribute proximityUUID.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ FakeBeacon
constructor
A new instance of FakeBeacon.
Constructor Details
#initialize(attributes) ⇒ FakeBeacon
Returns a new instance of FakeBeacon.
5 6 7 8 9 10 |
# File 'lib/tgios/beacon_manager.rb', line 5 def initialize(attributes) attributes.each do |k, v| k = :proximityUUID if k.to_s == 'uuid' instance_variable_set("@#{k}", v) end end |
Instance Attribute Details
#major ⇒ Object
Returns the value of attribute major.
3 4 5 |
# File 'lib/tgios/beacon_manager.rb', line 3 def major @major end |
#minor ⇒ Object
Returns the value of attribute minor.
3 4 5 |
# File 'lib/tgios/beacon_manager.rb', line 3 def minor @minor end |
#proximityUUID ⇒ Object
Returns the value of attribute proximityUUID.
3 4 5 |
# File 'lib/tgios/beacon_manager.rb', line 3 def proximityUUID @proximityUUID end |