Class: Puree::Organisation

Inherits:
Resource show all
Defined in:
lib/puree/organisation.rb

Overview

Organisation resource

Instance Method Summary collapse

Methods inherited from Resource

#content, #get, #response, #set_content

Constructor Details

#initializeOrganisation

Returns a new instance of Organisation.



7
8
9
# File 'lib/puree/organisation.rb', line 7

def initialize
  super(:organisation)
end

Instance Method Details

#metadataHash

All metadata

Returns:

  • (Hash)


22
23
24
25
26
# File 'lib/puree/organisation.rb', line 22

def 
  o = {}
  o['name'] = name
  o
end

#nameString

Name

Returns:

  • (String)


14
15
16
17
# File 'lib/puree/organisation.rb', line 14

def name
  data = node 'name'
  !data.nil? && !data.empty? ? data['localizedString']['__content__'] : ''
end