class MoneyS3::Parsers::SlevaType

Public Instance Methods

limit() click to toggle source
# File lib/money_s3/parsers/sleva_type.rb, line 6
def limit
  at 'Limit'
end
limit_attributes() click to toggle source
# File lib/money_s3/parsers/sleva_type.rb, line 10
def limit_attributes
  attributes_at 'Limit'
end
sleva() click to toggle source
# File lib/money_s3/parsers/sleva_type.rb, line 14
def sleva
  at 'Sleva'
end
sleva_attributes() click to toggle source
# File lib/money_s3/parsers/sleva_type.rb, line 18
def sleva_attributes
  attributes_at 'Sleva'
end
to_h() click to toggle source
# File lib/money_s3/parsers/sleva_type.rb, line 22
def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:limit] = limit if has? 'Limit'
  hash[:limit_attributes] = limit_attributes if has? 'Limit'
  hash[:sleva] = sleva if has? 'Sleva'
  hash[:sleva_attributes] = sleva_attributes if has? 'Sleva'

  hash
end