Class: IpwhoApi::Timezone
- Inherits:
-
Struct
- Object
- Struct
- IpwhoApi::Timezone
- Defined in:
- lib/ipwho.rb
Instance Attribute Summary collapse
-
#abbr ⇒ Object
Returns the value of attribute abbr.
-
#currentTime ⇒ Object
Returns the value of attribute currentTime.
-
#isDst ⇒ Object
Returns the value of attribute isDst.
-
#offset ⇒ Object
Returns the value of attribute offset.
-
#timeZone ⇒ Object
Returns the value of attribute timeZone.
-
#utc ⇒ Object
Returns the value of attribute utc.
Class Method Summary collapse
Instance Attribute Details
#abbr ⇒ Object
Returns the value of attribute abbr
61 62 63 |
# File 'lib/ipwho.rb', line 61 def abbr @abbr end |
#currentTime ⇒ Object
Returns the value of attribute currentTime
61 62 63 |
# File 'lib/ipwho.rb', line 61 def currentTime @currentTime end |
#isDst ⇒ Object
Returns the value of attribute isDst
61 62 63 |
# File 'lib/ipwho.rb', line 61 def isDst @isDst end |
#offset ⇒ Object
Returns the value of attribute offset
61 62 63 |
# File 'lib/ipwho.rb', line 61 def offset @offset end |
#timeZone ⇒ Object
Returns the value of attribute timeZone
61 62 63 |
# File 'lib/ipwho.rb', line 61 def timeZone @timeZone end |
#utc ⇒ Object
Returns the value of attribute utc
61 62 63 |
# File 'lib/ipwho.rb', line 61 def utc @utc end |
Class Method Details
.from_hash(hash) ⇒ Object
65 66 67 68 69 70 71 72 73 74 |
# File 'lib/ipwho.rb', line 65 def self.from_hash(hash) new( timeZone: hash["time_zone"], abbr: hash["abbr"], offset: hash["offset"], isDst: hash["is_dst"], utc: hash["utc"], currentTime: hash["current_time"] ) end |