Class: DynamicsCRM::XML::PageInfo
- Inherits:
-
Object
- Object
- DynamicsCRM::XML::PageInfo
- Defined in:
- lib/dynamics_crm/xml/page_info.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#page_number ⇒ Object
Returns the value of attribute page_number.
-
#paging_cookie ⇒ Object
Returns the value of attribute paging_cookie.
-
#return_total_record_count ⇒ Object
Returns the value of attribute return_total_record_count.
Instance Method Summary collapse
-
#initialize ⇒ PageInfo
constructor
A new instance of PageInfo.
- #to_hash ⇒ Object
-
#to_xml ⇒ Object
Using Entity vs entity causes the error: Value cannot be null.
Constructor Details
#initialize ⇒ PageInfo
7 8 9 10 11 12 |
# File 'lib/dynamics_crm/xml/page_info.rb', line 7 def initialize @count = 20 @page_number = 1 = nil @return_total_record_count = false end |
Instance Attribute Details
#count ⇒ Object
Returns the value of attribute count.
6 7 8 |
# File 'lib/dynamics_crm/xml/page_info.rb', line 6 def count @count end |
#page_number ⇒ Object
Returns the value of attribute page_number.
6 7 8 |
# File 'lib/dynamics_crm/xml/page_info.rb', line 6 def page_number @page_number end |
#paging_cookie ⇒ Object
Returns the value of attribute paging_cookie.
6 7 8 |
# File 'lib/dynamics_crm/xml/page_info.rb', line 6 def end |
#return_total_record_count ⇒ Object
Returns the value of attribute return_total_record_count.
6 7 8 |
# File 'lib/dynamics_crm/xml/page_info.rb', line 6 def return_total_record_count @return_total_record_count end |
Instance Method Details
#to_hash ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/dynamics_crm/xml/page_info.rb', line 26 def to_hash { :count => count, :page_number => page_number, :paging_cookie => , :return_total_record_count => return_total_record_count } end |
#to_xml ⇒ Object
Using Entity vs entity causes the error: Value cannot be null.
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/dynamics_crm/xml/page_info.rb', line 15 def to_xml %Q{ <b:PageInfo> <b:Count>#{count}</b:Count> <b:PageNumber>#{page_number}</b:PageNumber> <b:PagingCookie i:nil="true" /> <b:ReturnTotalRecordCount>false</b:ReturnTotalRecordCount> </b:PageInfo> } end |