Class: HealthVault::WCData::Thing::DataOther
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::DataOther
- Defined in:
- lib/wc_data/generated/thing/data_other.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#content_encoding ⇒ Object
returns: a HealthVault::WCData::Types::Stringz1024.
-
#content_encoding=(value) ⇒ Object
value is a HealthVault::WCData::Types::Stringz1024.
-
#content_type ⇒ Object
returns: a HealthVault::WCData::Types::Stringz1024.
-
#content_type=(value) ⇒ Object
value is a HealthVault::WCData::Types::Stringz1024.
-
#data ⇒ Object
returns: a String.
-
#data=(value) ⇒ Object
REQUIRED value is a String.
-
#initialize ⇒ DataOther
constructor
A new instance of DataOther.
Methods inherited from ComplexType
#add_new_to_children, #element, #method_missing, #optional_elements, #parse_element, #query_elements, #required_elements, #to_s, #valid?
Constructor Details
#initialize ⇒ DataOther
Returns a new instance of DataOther.
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/wc_data/generated/thing/data_other.rb', line 56 def initialize super self.tag_name = 'dataother' @children['data'] = {:name => 'data', :class => String, :value => nil, :min => 1, :max => 1, :order => 0, :place => :extension, :choice => 0 } @children['data'][:value] = String.new @children['content-type'] = {:name => 'content-type', :class => HealthVault::WCData::Types::Stringz1024, :value => nil, :min => 0, :max => 1, :order => 0, :place => :attribute, :choice => 0 } @children['content-encoding'] = {:name => 'content-encoding', :class => HealthVault::WCData::Types::Stringz1024, :value => nil, :min => 0, :max => 1, :order => 0, :place => :attribute, :choice => 0 } end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class HealthVault::WCData::ComplexType
Instance Method Details
#content_encoding ⇒ Object
returns: a HealthVault::WCData::Types::Stringz1024
50 51 52 |
# File 'lib/wc_data/generated/thing/data_other.rb', line 50 def content_encoding return @children['content-encoding'][:value] end |
#content_encoding=(value) ⇒ Object
value is a HealthVault::WCData::Types::Stringz1024
45 46 47 |
# File 'lib/wc_data/generated/thing/data_other.rb', line 45 def content_encoding=(value) @children['content-encoding'][:value] = value end |
#content_type ⇒ Object
returns: a HealthVault::WCData::Types::Stringz1024
37 38 39 |
# File 'lib/wc_data/generated/thing/data_other.rb', line 37 def content_type return @children['content-type'][:value] end |
#content_type=(value) ⇒ Object
value is a HealthVault::WCData::Types::Stringz1024
32 33 34 |
# File 'lib/wc_data/generated/thing/data_other.rb', line 32 def content_type=(value) @children['content-type'][:value] = value end |
#data ⇒ Object
returns: a String
24 25 26 |
# File 'lib/wc_data/generated/thing/data_other.rb', line 24 def data return @children['data'][:value] end |
#data=(value) ⇒ Object
REQUIRED value is a String
19 20 21 |
# File 'lib/wc_data/generated/thing/data_other.rb', line 19 def data=(value) @children['data'][:value] = value end |