Class: Rews::View::IndexedPageItemView

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

Overview

models the IndexedPageItemView used in Folder::BaseFolderId.find_item method

Instance Attribute Summary

Attributes inherited from Base

#view

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(view) ⇒ IndexedPageItemView

Returns a new instance of IndexedPageItemView.



31
32
33
# File 'lib/rews/view.rb', line 31

def initialize(view)
  @view = check_opts(INDEXED_PAGE_VIEW_OPTS, view)
end

Instance Method Details

#to_xmlObject



35
36
37
# File 'lib/rews/view.rb', line 35

def to_xml
  Xml::write_item_view(:IndexedPageItemView, view)
end