Class: GeolocationParams
- Inherits:
-
Object
- Object
- GeolocationParams
- Defined in:
- lib/ipgeolocation_io/GeolocationParams.rb
Instance Attribute Summary collapse
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#ip ⇒ Object
Returns the value of attribute ip.
-
#ips ⇒ Object
Returns the value of attribute ips.
-
#lang ⇒ Object
Returns the value of attribute lang.
Instance Method Summary collapse
-
#initialize ⇒ GeolocationParams
constructor
A new instance of GeolocationParams.
Constructor Details
#initialize ⇒ GeolocationParams
Returns a new instance of GeolocationParams.
8 9 10 11 12 13 |
# File 'lib/ipgeolocation_io/GeolocationParams.rb', line 8 def initialize @ip = ""; @fields = ""; @lang = "en"; @ips = Array.new(0); end |
Instance Attribute Details
#fields ⇒ Object
Returns the value of attribute fields.
4 5 6 |
# File 'lib/ipgeolocation_io/GeolocationParams.rb', line 4 def fields @fields end |
#ip ⇒ Object
Returns the value of attribute ip.
3 4 5 |
# File 'lib/ipgeolocation_io/GeolocationParams.rb', line 3 def ip @ip end |
#ips ⇒ Object
Returns the value of attribute ips.
6 7 8 |
# File 'lib/ipgeolocation_io/GeolocationParams.rb', line 6 def ips @ips end |
#lang ⇒ Object
Returns the value of attribute lang.
5 6 7 |
# File 'lib/ipgeolocation_io/GeolocationParams.rb', line 5 def lang @lang end |