Class: IsoBibItem::DocumentStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/iso_bib_item/document_status.rb

Overview

Dovument status.

Direct Known Subclasses

IsoDocumentStatus

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status) ⇒ DocumentStatus

Returns a new instance of DocumentStatus.

Parameters:



12
13
14
# File 'lib/iso_bib_item/document_status.rb', line 12

def initialize(status)
  @status = status
end

Instance Attribute Details

#statusIsoBibItem::LocalizedString (readonly)



9
10
11
# File 'lib/iso_bib_item/document_status.rb', line 9

def status
  @status
end

Instance Method Details

#to_xml(builder) ⇒ Object

Parameters:

  • (Nokogiri::XML::Builder)


17
18
19
20
21
22
# File 'lib/iso_bib_item/document_status.rb', line 17

def to_xml(builder)
  builder.status do
    # FormattedString.instance_method(:to_xml).bind(status).call builder
    status.to_xml builder
  end
end