Class: HealthVault::WCData::Thing::File::File
- Inherits:
-
ComplexType
- Object
- ComplexType
- HealthVault::WCData::Thing::File::File
- Defined in:
- lib/wc_data/generated/thing/file/file.rb
Instance Attribute Summary
Attributes inherited from ComplexType
Instance Method Summary collapse
-
#content_type ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue.
-
#content_type=(value) ⇒ Object
remarks: If empty, the Microsoft Health Service will assume a content type of application/octet-stream.
-
#initialize ⇒ File
constructor
A new instance of File.
-
#name ⇒ Object
returns: a HealthVault::WCData::Types::String255.
-
#name=(value) ⇒ Object
value is a HealthVault::WCData::Types::String255.
-
#size ⇒ Object
returns: a String.
-
#size=(value) ⇒ Object
value is a String.
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 ⇒ File
Returns a new instance of File.
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/wc_data/generated/thing/file/file.rb', line 61 def initialize super self.tag_name = 'file' @children['name'] = {:name => 'name', :class => HealthVault::WCData::Types::String255, :value => nil, :min => 1, :max => 1, :order => 1, :place => :element, :choice => 0 } @children['name'][:value] = HealthVault::WCData::Types::String255.new @children['size'] = {:name => 'size', :class => String, :value => nil, :min => 1, :max => 1, :order => 2, :place => :element, :choice => 0 } @children['size'][:value] = String.new @children['content-type'] = {:name => 'content-type', :class => HealthVault::WCData::Thing::Types::Codablevalue, :value => nil, :min => 0, :max => 1, :order => 3, :place => :element, :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_type ⇒ Object
returns: a HealthVault::WCData::Thing::Types::Codablevalue
55 56 57 |
# File 'lib/wc_data/generated/thing/file/file.rb', line 55 def content_type return @children['content-type'][:value] end |
#content_type=(value) ⇒ Object
remarks: If empty, the Microsoft Health Service will assume a content type of application/octet-stream. value is a HealthVault::WCData::Thing::Types::Codablevalue
50 51 52 |
# File 'lib/wc_data/generated/thing/file/file.rb', line 50 def content_type=(value) @children['content-type'][:value] = value end |
#name ⇒ Object
returns: a HealthVault::WCData::Types::String255
26 27 28 |
# File 'lib/wc_data/generated/thing/file/file.rb', line 26 def name return @children['name'][:value] end |
#name=(value) ⇒ Object
value is a HealthVault::WCData::Types::String255
21 22 23 |
# File 'lib/wc_data/generated/thing/file/file.rb', line 21 def name=(value) @children['name'][:value] = value end |
#size ⇒ Object
returns: a String
40 41 42 |
# File 'lib/wc_data/generated/thing/file/file.rb', line 40 def size return @children['size'][:value] end |
#size=(value) ⇒ Object
value is a String
35 36 37 |
# File 'lib/wc_data/generated/thing/file/file.rb', line 35 def size=(value) @children['size'][:value] = value end |