Class: Internode::Details
Instance Attribute Summary
Attributes inherited from Resource
#client, #path
Instance Method Summary
collapse
Methods inherited from Resource
#content, content_attr, #initialize
Instance Method Details
#quota ⇒ Object
10
11
12
|
# File 'lib/internode/details.rb', line 10
def quota
content.at_css("quota").text.to_i
end
|
#quota_gb ⇒ Object
18
19
20
|
# File 'lib/internode/details.rb', line 18
def quota_gb
quota_mb / 1000
end
|
#quota_mb ⇒ Object
14
15
16
|
# File 'lib/internode/details.rb', line 14
def quota_mb
quota / 1000 / 1000
end
|
#type ⇒ Object
6
7
8
|
# File 'lib/internode/details.rb', line 6
def type
content.at_css("service").attr("type").text
end
|