Class: TimezoneParams
- Inherits:
-
Object
- Object
- TimezoneParams
- Defined in:
- lib/ipgeolocation_io/TimezoneParams.rb
Instance Attribute Summary collapse
-
#ip ⇒ Object
Returns the value of attribute ip.
-
#lang ⇒ Object
Returns the value of attribute lang.
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
-
#timezone ⇒ Object
Returns the value of attribute timezone.
Instance Method Summary collapse
-
#initialize ⇒ TimezoneParams
constructor
A new instance of TimezoneParams.
- #setLocation(latitude, longitude) ⇒ Object
Constructor Details
#initialize ⇒ TimezoneParams
8 9 10 11 12 13 14 |
# File 'lib/ipgeolocation_io/TimezoneParams.rb', line 8 def initialize() @timezone = ""; @ip = ""; @lang = "en"; @latitude = 1000.0; @longitude = 1000.0; end |
Instance Attribute Details
#ip ⇒ Object
Returns the value of attribute ip.
3 4 5 |
# File 'lib/ipgeolocation_io/TimezoneParams.rb', line 3 def ip @ip end |
#lang ⇒ Object
Returns the value of attribute lang.
4 5 6 |
# File 'lib/ipgeolocation_io/TimezoneParams.rb', line 4 def lang @lang end |
#latitude ⇒ Object
Returns the value of attribute latitude.
5 6 7 |
# File 'lib/ipgeolocation_io/TimezoneParams.rb', line 5 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude.
6 7 8 |
# File 'lib/ipgeolocation_io/TimezoneParams.rb', line 6 def longitude @longitude end |
#timezone ⇒ Object
Returns the value of attribute timezone.
2 3 4 |
# File 'lib/ipgeolocation_io/TimezoneParams.rb', line 2 def timezone @timezone end |
Instance Method Details
#setLocation(latitude, longitude) ⇒ Object
16 17 18 19 |
# File 'lib/ipgeolocation_io/TimezoneParams.rb', line 16 def setLocation(latitude, longitude) @latitude = latitude; @longitude = longitude; end |