Class: XSD::XSDDuration

Inherits:
XSDAnySimpleType show all
Defined in:
lib/xsd/datatypes.rb

Direct Known Subclasses

SOAP::SOAPDuration

Constant Summary collapse

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, FloatLiteral, GDayLiteral, GMonthDayLiteral, GMonthLiteral, GYearLiteral, GYearMonthLiteral, HexBinaryLiteral, InstanceNamespace, IntLiteral, IntegerLiteral, LanguageLiteral, LongLiteral, Namespace, NegativeIntegerLiteral, NilLiteral, NilValue, NonNegativeIntegerLiteral, NonPositiveIntegerLiteral, NormalizedStringLiteral, PositiveIntegerLiteral, QNameLiteral, ShortLiteral, StringLiteral, TimeLiteral, TokenLiteral, UnsignedByteLiteral, UnsignedIntLiteral, UnsignedLongLiteral, UnsignedShortLiteral

Instance Attribute Summary collapse

Attributes inherited from XSDAnySimpleType

#data, #is_nil

Attributes inherited from NSDBase

#type

Instance Method Summary collapse

Methods inherited from XSDAnySimpleType

#check_lexical_format, #set, #to_s

Methods inherited from NSDBase

inherited, #init, types

Constructor Details

#initialize(value = nil) ⇒ XSDDuration

Returns a new instance of XSDDuration.


446
447
448
# File 'lib/xsd/datatypes.rb', line 446

def initialize(value = nil)
  init(Type, value)
end

Instance Attribute Details

#dayObject

Returns the value of attribute day


441
442
443
# File 'lib/xsd/datatypes.rb', line 441

def day
  @day
end

#hourObject

Returns the value of attribute hour


442
443
444
# File 'lib/xsd/datatypes.rb', line 442

def hour
  @hour
end

#minObject

Returns the value of attribute min


443
444
445
# File 'lib/xsd/datatypes.rb', line 443

def min
  @min
end

#monthObject

Returns the value of attribute month


440
441
442
# File 'lib/xsd/datatypes.rb', line 440

def month
  @month
end

#secObject

Returns the value of attribute sec


444
445
446
# File 'lib/xsd/datatypes.rb', line 444

def sec
  @sec
end

#signObject

Returns the value of attribute sign


438
439
440
# File 'lib/xsd/datatypes.rb', line 438

def sign
  @sign
end

#yearObject

Returns the value of attribute year


439
440
441
# File 'lib/xsd/datatypes.rb', line 439

def year
  @year
end