Class: ConfluenceSoap::Page
- Inherits:
-
Struct
- Object
- Struct
- ConfluenceSoap::Page
- Defined in:
- lib/confluence-soap.rb
Constant Summary collapse
- SKIPPED_KEYS =
[:content_status, :created, :creator, :current, :home_page, :modified, :modifier, :url]
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#content_status ⇒ Object
Returns the value of attribute content_status.
-
#created ⇒ Object
Returns the value of attribute created.
-
#creator ⇒ Object
Returns the value of attribute creator.
-
#current ⇒ Object
Returns the value of attribute current.
-
#home_page ⇒ Object
Returns the value of attribute home_page.
-
#id ⇒ Object
Returns the value of attribute id.
-
#modified ⇒ Object
Returns the value of attribute modified.
-
#modifier ⇒ Object
Returns the value of attribute modifier.
-
#parent_id ⇒ Object
Returns the value of attribute parent_id.
-
#permissions ⇒ Object
Returns the value of attribute permissions.
-
#space ⇒ Object
Returns the value of attribute space.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
-
#version ⇒ Object
Returns the value of attribute version.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content
8 9 10 |
# File 'lib/confluence-soap.rb', line 8 def content @content end |
#content_status ⇒ Object
Returns the value of attribute content_status
8 9 10 |
# File 'lib/confluence-soap.rb', line 8 def content_status @content_status end |
#created ⇒ Object
Returns the value of attribute created
8 9 10 |
# File 'lib/confluence-soap.rb', line 8 def created @created end |
#creator ⇒ Object
Returns the value of attribute creator
8 9 10 |
# File 'lib/confluence-soap.rb', line 8 def creator @creator end |
#current ⇒ Object
Returns the value of attribute current
8 9 10 |
# File 'lib/confluence-soap.rb', line 8 def current @current end |
#home_page ⇒ Object
Returns the value of attribute home_page
8 9 10 |
# File 'lib/confluence-soap.rb', line 8 def home_page @home_page end |
#id ⇒ Object
Returns the value of attribute id
8 9 10 |
# File 'lib/confluence-soap.rb', line 8 def id @id end |
#modified ⇒ Object
Returns the value of attribute modified
8 9 10 |
# File 'lib/confluence-soap.rb', line 8 def modified @modified end |
#modifier ⇒ Object
Returns the value of attribute modifier
8 9 10 |
# File 'lib/confluence-soap.rb', line 8 def modifier @modifier end |
#parent_id ⇒ Object
Returns the value of attribute parent_id
8 9 10 |
# File 'lib/confluence-soap.rb', line 8 def parent_id @parent_id end |
#permissions ⇒ Object
Returns the value of attribute permissions
8 9 10 |
# File 'lib/confluence-soap.rb', line 8 def @permissions end |
#space ⇒ Object
Returns the value of attribute space
8 9 10 |
# File 'lib/confluence-soap.rb', line 8 def space @space end |
#title ⇒ Object
Returns the value of attribute title
8 9 10 |
# File 'lib/confluence-soap.rb', line 8 def title @title end |
#url ⇒ Object
Returns the value of attribute url
8 9 10 |
# File 'lib/confluence-soap.rb', line 8 def url @url end |
#version ⇒ Object
Returns the value of attribute version
8 9 10 |
# File 'lib/confluence-soap.rb', line 8 def version @version end |
Class Method Details
.from_hash(h) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/confluence-soap.rb', line 12 def self.from_hash(h) values = h.values_at(*Page.members.map { |m| m.to_sym }) .map { |v| v.is_a?(Hash) ? v[:value] || '' : v } self.new *values end |
Instance Method Details
#to_soap ⇒ Object
22 23 24 |
# File 'lib/confluence-soap.rb', line 22 def to_soap to_h.reject { |k, v| v.nil? || SKIPPED_KEYS.include?(k) } end |