Class: Rews::Shape::FolderShape

Inherits:
Base
  • Object
show all
Defined in:
lib/rews/shape.rb

Overview

models FolderShape used in Folder::BaseFolderId.find_folder method

Instance Attribute Summary

Attributes inherited from Base

#shape

Instance Method Summary collapse

Methods inherited from Base

#inspect

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_xmlObject



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