Class: XSD::XSDDuration

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

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, LongLiteral, Namespace, NegativeIntegerLiteral, NilLiteral, NilValue, NonNegativeIntegerLiteral, NonPositiveIntegerLiteral, NormalizedStringLiteral, PositiveIntegerLiteral, QNameLiteral, ShortLiteral, StringLiteral, TimeLiteral, 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.



433
434
435
# File 'lib/xsd/datatypes.rb', line 433

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

Instance Attribute Details

#dayObject

Returns the value of attribute day



428
429
430
# File 'lib/xsd/datatypes.rb', line 428

def day
  @day
end

#hourObject

Returns the value of attribute hour



429
430
431
# File 'lib/xsd/datatypes.rb', line 429

def hour
  @hour
end

#minObject

Returns the value of attribute min



430
431
432
# File 'lib/xsd/datatypes.rb', line 430

def min
  @min
end

#monthObject

Returns the value of attribute month



427
428
429
# File 'lib/xsd/datatypes.rb', line 427

def month
  @month
end

#secObject

Returns the value of attribute sec



431
432
433
# File 'lib/xsd/datatypes.rb', line 431

def sec
  @sec
end

#signObject

Returns the value of attribute sign



425
426
427
# File 'lib/xsd/datatypes.rb', line 425

def sign
  @sign
end

#yearObject

Returns the value of attribute year



426
427
428
# File 'lib/xsd/datatypes.rb', line 426

def year
  @year
end