Class: MoneyS3::Parsers::EShopInfo

Inherits:
Object
  • Object
show all
Includes:
ParserCore::BaseParser
Defined in:
lib/money_s3/parsers/e_shop_info.rb

Instance Method Summary collapse

Instance Method Details

#e_sale_idObject



22
23
24
# File 'lib/money_s3/parsers/e_shop_info.rb', line 22

def e_sale_id
  at 'eSaleID'
end

#e_sale_id_attributesObject



26
27
28
# File 'lib/money_s3/parsers/e_shop_info.rb', line 26

def e_sale_id_attributes
  attributes_at 'eSaleID'
end

#e_shop_idObject



6
7
8
# File 'lib/money_s3/parsers/e_shop_info.rb', line 6

def e_shop_id
  at 'eShopID'
end

#e_shop_id_attributesObject



10
11
12
# File 'lib/money_s3/parsers/e_shop_info.rb', line 10

def e_shop_id_attributes
  attributes_at 'eShopID'
end

#e_shop_nameObject



14
15
16
# File 'lib/money_s3/parsers/e_shop_info.rb', line 14

def e_shop_name
  at 'eShopName'
end

#e_shop_name_attributesObject



18
19
20
# File 'lib/money_s3/parsers/e_shop_info.rb', line 18

def e_shop_name_attributes
  attributes_at 'eShopName'
end

#to_hObject



30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/money_s3/parsers/e_shop_info.rb', line 30

def to_h
  hash = {}
  hash[:attributes] = attributes

  hash[:e_shop_id] = e_shop_id if has? 'eShopID'
  hash[:e_shop_id_attributes] = e_shop_id_attributes if has? 'eShopID'
  hash[:e_shop_name] = e_shop_name if has? 'eShopName'
  hash[:e_shop_name_attributes] = e_shop_name_attributes if has? 'eShopName'
  hash[:e_sale_id] = e_sale_id if has? 'eSaleID'
  hash[:e_sale_id_attributes] = e_sale_id_attributes if has? 'eSaleID'

  hash
end