Class: XSD::XSDDuration
- Inherits:
-
XSDAnySimpleType
- Object
- NSDBase
- XSDAnySimpleType
- XSD::XSDDuration
- Defined in:
- lib/xsd/datatypes.rb
Constant Summary
- Type =
QName.new(Namespace, DurationLiteral)
Constants included from XSD
AnySimpleTypeLiteral, AnySimpleTypeName, AnyTypeLiteral, AnyTypeName, AnyURILiteral, AttrNilName, AttrType, AttrTypeName, Base64BinaryLiteral, BooleanLiteral, ByteLiteral, DateLiteral, DateTimeLiteral, DecimalLiteral, DoubleLiteral, DurationLiteral, ENTITIESLiteral, ENTITYLiteral, FloatLiteral, GDayLiteral, GMonthDayLiteral, GMonthLiteral, GYearLiteral, GYearMonthLiteral, HexBinaryLiteral, IDLiteral, IDREFLiteral, IDREFSLiteral, InstanceNamespace, IntLiteral, IntegerLiteral, LanguageLiteral, LongLiteral, NCNameLiteral, NMTOKENLiteral, NMTOKENSLiteral, NameLiteral, Namespace, NegativeIntegerLiteral, NilLiteral, NilValue, NonNegativeIntegerLiteral, NonPositiveIntegerLiteral, NormalizedStringLiteral, PositiveIntegerLiteral, QNameLiteral, ShortLiteral, StringLiteral, TimeLiteral, TokenLiteral, UnsignedByteLiteral, UnsignedIntLiteral, UnsignedLongLiteral, UnsignedShortLiteral
Instance Attribute Summary (collapse)
-
- (Object) day
Returns the value of attribute day.
-
- (Object) hour
Returns the value of attribute hour.
-
- (Object) min
Returns the value of attribute min.
-
- (Object) month
Returns the value of attribute month.
-
- (Object) sec
Returns the value of attribute sec.
-
- (Object) sign
Returns the value of attribute sign.
-
- (Object) year
Returns the value of attribute year.
Attributes inherited from XSDAnySimpleType
Attributes inherited from NSDBase
Instance Method Summary (collapse)
-
- (XSDDuration) initialize(value = nil)
constructor
A new instance of XSDDuration.
Methods inherited from XSDAnySimpleType
#check_lexical_format, #set, #to_s
Methods inherited from NSDBase
Constructor Details
- (XSDDuration) initialize(value = nil)
A new instance of XSDDuration
447 448 449 |
# File 'lib/xsd/datatypes.rb', line 447 def initialize(value = nil) init(Type, value) end |
Instance Attribute Details
- (Object) day
Returns the value of attribute day
442 443 444 |
# File 'lib/xsd/datatypes.rb', line 442 def day @day end |
- (Object) hour
Returns the value of attribute hour
443 444 445 |
# File 'lib/xsd/datatypes.rb', line 443 def hour @hour end |
- (Object) min
Returns the value of attribute min
444 445 446 |
# File 'lib/xsd/datatypes.rb', line 444 def min @min end |
- (Object) month
Returns the value of attribute month
441 442 443 |
# File 'lib/xsd/datatypes.rb', line 441 def month @month end |
- (Object) sec
Returns the value of attribute sec
445 446 447 |
# File 'lib/xsd/datatypes.rb', line 445 def sec @sec end |
- (Object) sign
Returns the value of attribute sign
439 440 441 |
# File 'lib/xsd/datatypes.rb', line 439 def sign @sign end |
- (Object) year
Returns the value of attribute year
440 441 442 |
# File 'lib/xsd/datatypes.rb', line 440 def year @year end |