Class: Internode::Details

Inherits:
Resource show all
Defined in:
lib/internode/details.rb

Instance Attribute Summary

Attributes inherited from Resource

#client, #path

Instance Method Summary collapse

Methods inherited from Resource

#content, content_attr, #initialize

Constructor Details

This class inherits a constructor from Internode::Resource

Instance Method Details

#quotaObject



10
11
12
# File 'lib/internode/details.rb', line 10

def quota
  content.at_css("quota").text.to_i
end

#quota_gbObject



18
19
20
# File 'lib/internode/details.rb', line 18

def quota_gb
  quota_mb / 1000
end

#quota_mbObject



14
15
16
# File 'lib/internode/details.rb', line 14

def quota_mb
  quota / 1000 / 1000
end

#typeObject



6
7
8
# File 'lib/internode/details.rb', line 6

def type
  content.at_css("service").attr("type").text
end