Class: OpenEHR::RM::DataTypes::URI::DvUri
Constant Summary
Support::Definition::BasicDefinition::CR, Support::Definition::BasicDefinition::LF
Instance Method Summary
collapse
#==
Constructor Details
#initialize(args = {}) ⇒ DvUri
Returns a new instance of DvUri.
34
35
36
|
# File 'lib/openehr/rm/data_types/uri.rb', line 34
def initialize(args = {})
self.value = args[:value]
end
|
Instance Method Details
#fragment_id ⇒ Object
42
43
44
|
# File 'lib/openehr/rm/data_types/uri.rb', line 42
def fragment_id
@uri.fragment
end
|
#path ⇒ Object
46
47
48
|
# File 'lib/openehr/rm/data_types/uri.rb', line 46
def path
@uri.path
end
|
#query ⇒ Object
50
51
52
|
# File 'lib/openehr/rm/data_types/uri.rb', line 50
def query
@uri.query
end
|
#scheme ⇒ Object
54
55
56
|
# File 'lib/openehr/rm/data_types/uri.rb', line 54
def scheme
@uri.scheme
end
|
#value ⇒ Object
38
39
40
|
# File 'lib/openehr/rm/data_types/uri.rb', line 38
def value
@value
end
|
#value=(value) ⇒ Object
58
59
60
61
|
# File 'lib/openehr/rm/data_types/uri.rb', line 58
def value=(value)
raise ArgumentError, "value is empty" if value.nil?
parse(value)
end
|