Method: Cuenote::Api::Node#attributes

Defined in:
lib/cuenote/api/node.rb

#attributesObject



19
20
21
22
23
24
# File 'lib/cuenote/api/node.rb', line 19

def attributes
  @attributes ||= @doc.attributes.inject({}) do
    |hash, attr| hash[attr[0].to_sym] = attr[1]
    hash
  end
end