class Pohoda::Parsers::Stk::RelatedLinksType

Public Instance Methods

to_h() click to toggle source
# File lib/pohoda/parsers/stk/related_links_type.rb, line 11
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:related_link] = related_link.map(&:to_h) if has? 'stk:relatedLink'

  hash
end