class Pohoda::Parsers::Acp::ValidityActionType

Public Instance Methods

date_from() click to toggle source
# File lib/pohoda/parsers/acp/validity_action_type.rb, line 7
def date_from
  at 'acp:dateFrom'
end
date_from_attributes() click to toggle source
# File lib/pohoda/parsers/acp/validity_action_type.rb, line 11
def date_from_attributes
  attributes_at 'acp:dateFrom'
end
date_till() click to toggle source
# File lib/pohoda/parsers/acp/validity_action_type.rb, line 15
def date_till
  at 'acp:dateTill'
end
date_till_attributes() click to toggle source
# File lib/pohoda/parsers/acp/validity_action_type.rb, line 19
def date_till_attributes
  attributes_at 'acp:dateTill'
end
to_h() click to toggle source
# File lib/pohoda/parsers/acp/validity_action_type.rb, line 23
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:date_from] = date_from if has? 'acp:dateFrom'
  hash[:date_from_attributes] = date_from_attributes if has? 'acp:dateFrom'
  hash[:date_till] = date_till if has? 'acp:dateTill'
  hash[:date_till_attributes] = date_till_attributes if has? 'acp:dateTill'

  hash
end