mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[ibm] launched_at convenience method
This commit is contained in:
parent
f822d67dc7
commit
fa9c06d714
1 changed files with 4 additions and 0 deletions
|
@ -132,6 +132,10 @@ module Fog
|
||||||
data.body
|
data.body
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def launched_at
|
||||||
|
Time.at(attributes[:launched_at].to_f / 1000)
|
||||||
|
end
|
||||||
|
|
||||||
def expires_at
|
def expires_at
|
||||||
Time.at(attributes[:expires_at].to_f / 1000)
|
Time.at(attributes[:expires_at].to_f / 1000)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue