Class: Puree::Organisation
- Defined in:
- lib/puree/organisation.rb
Overview
Organisation resource
Instance Method Summary collapse
-
#initialize ⇒ Organisation
constructor
A new instance of Organisation.
-
#metadata ⇒ Hash
All metadata.
-
#name ⇒ String
Name.
Methods inherited from Resource
#content, #get, #response, #set_content
Constructor Details
#initialize ⇒ Organisation
Returns a new instance of Organisation.
7 8 9 |
# File 'lib/puree/organisation.rb', line 7 def initialize super(:organisation) end |
Instance Method Details
#metadata ⇒ Hash
All metadata
22 23 24 25 26 |
# File 'lib/puree/organisation.rb', line 22 def o = {} o['name'] = name o end |
#name ⇒ String
Name
14 15 16 17 |
# File 'lib/puree/organisation.rb', line 14 def name data = node 'name' !data.nil? && !data.empty? ? data['localizedString']['__content__'] : '' end |