Class: Internode::Service

Inherits:
Resource show all
Defined in:
lib/internode/service.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

#detailsObject



11
12
13
# File 'lib/internode/service.rb', line 11

def details
  @details ||= Details.new(client: client, path: details_path)
end

#idObject



3
4
5
# File 'lib/internode/service.rb', line 3

def id
  service.text
end

#typeObject



7
8
9
# File 'lib/internode/service.rb', line 7

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

#usageObject



15
16
17
# File 'lib/internode/service.rb', line 15

def usage
  @usage ||= Usage.new(client: client, path: usage_path)
end