class Pohoda::Parsers::Stk::RelatedLinkType

Public Instance Methods

address_url() click to toggle source
# File lib/pohoda/parsers/stk/related_link_type.rb, line 7
def address_url
  at 'stk:addressURL'
end
address_url_attributes() click to toggle source
# File lib/pohoda/parsers/stk/related_link_type.rb, line 11
def address_url_attributes
  attributes_at 'stk:addressURL'
end
description() click to toggle source
# File lib/pohoda/parsers/stk/related_link_type.rb, line 15
def description
  at 'stk:description'
end
description_attributes() click to toggle source
# File lib/pohoda/parsers/stk/related_link_type.rb, line 19
def description_attributes
  attributes_at 'stk:description'
end
to_h() click to toggle source
# File lib/pohoda/parsers/stk/related_link_type.rb, line 23
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:address_url] = address_url if has? 'stk:addressURL'
  hash[:address_url_attributes] = address_url_attributes if has? 'stk:addressURL'
  hash[:description] = description if has? 'stk:description'
  hash[:description_attributes] = description_attributes if has? 'stk:description'

  hash
end