Class: Exchanger::CategoryString

Inherits:
Element
  • Object
show all
Defined in:
lib/exchanger/elements/category_string.rb

Overview

The CategoryString is the subelement for the Categories element in the CreateItem, GetItem, and UpdateItem operations.

msdn.microsoft.com/en-us/library/aa565683(v=exchg.150).aspx

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Element

#==, #assign_attributes_from_xml, create_element_accessors, element, #errors, #initialize, #inspect, key, #to_xml, #to_xml_change, #to_xml_updates

Methods included from Persistence

#destroy, #new_record?, #persisted?, #reload, #save

Methods included from Dirty

#attribute_change, #attribute_changed?, #attribute_was, #changed, #changed?, #changes, included, #move_changes, #previous_changes, #reset_attribute!, #reset_modifications, #setup_modifications

Methods included from Attributes

#attributes, #attributes=, #change_key, #id, #identifier, #method_missing, #read_attribute, #respond_to?, #write_attribute

Constructor Details

This class inherits a constructor from Exchanger::Element

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Exchanger::Attributes

Class Method Details

.new_from_xml(xml) ⇒ Object

For backwards compatibility in GetItem requests, we will continue to return a String instead of an Exchanger::CategoryString.



13
14
15
# File 'lib/exchanger/elements/category_string.rb', line 13

def self.new_from_xml(xml)
  super.text
end

Instance Method Details

#tag_nameObject



8
9
10
# File 'lib/exchanger/elements/category_string.rb', line 8

def tag_name
  "String"
end