Class: Rews::Shape::FolderShape
Overview
models FolderShape
used in Folder::BaseFolderId.find_folder
method
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(shape) ⇒ FolderShape
constructor
A new instance of FolderShape.
- #to_xml ⇒ Object
Methods inherited from Base
Methods included from Util
apply_namespace, camel_keys, camelize, camelize_qname, check_opts, rsxml_to_xml, single_error_check, strip_bang, tag_exception, with_error_check
Constructor Details
#initialize(shape) ⇒ FolderShape
Returns a new instance of FolderShape.
67 68 69 |
# File 'lib/rews/shape.rb', line 67 def initialize(shape) @shape = check_opts(FOLDER_SHAPE_OPTS, shape) end |
Instance Method Details
#to_xml ⇒ Object
71 72 73 74 75 76 |
# File 'lib/rews/shape.rb', line 71 def to_xml Xml::write_shape(:FolderShape) do |xml| xml.t :BaseShape, shape[:base_shape] Xml::write_additional_properties(xml, shape[:additional_properties]) end end |