Class: MoneyS3::Parsers::VlajkaType

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

Instance Method Summary collapse

Instance Method Details

#enabledObject



38
39
40
# File 'lib/money_s3/parsers/vlajka_type.rb', line 38

def enabled
  at 'Enabled'
end

#enabled_attributesObject



42
43
44
# File 'lib/money_s3/parsers/vlajka_type.rb', line 42

def enabled_attributes
  attributes_at 'Enabled'
end

#id_flagObject



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

def id_flag
  at 'IDFlag'
end

#id_flag_attributesObject



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

def id_flag_attributes
  attributes_at 'IDFlag'
end

#id_userObject



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

def id_user
  at 'IDUser'
end

#id_user_attributesObject



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

def id_user_attributes
  attributes_at 'IDUser'
end

#name_userObject



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

def name_user
  at 'NameUser'
end

#name_user_attributesObject



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

def name_user_attributes
  attributes_at 'NameUser'
end

#remarkObject



46
47
48
# File 'lib/money_s3/parsers/vlajka_type.rb', line 46

def remark
  at 'Remark'
end

#remark_attributesObject



50
51
52
# File 'lib/money_s3/parsers/vlajka_type.rb', line 50

def remark_attributes
  attributes_at 'Remark'
end

#rf_heightObject



62
63
64
# File 'lib/money_s3/parsers/vlajka_type.rb', line 62

def rf_height
  at 'RFHeight'
end

#rf_height_attributesObject



66
67
68
# File 'lib/money_s3/parsers/vlajka_type.rb', line 66

def rf_height_attributes
  attributes_at 'RFHeight'
end

#rf_widthObject



54
55
56
# File 'lib/money_s3/parsers/vlajka_type.rb', line 54

def rf_width
  at 'RFWidth'
end

#rf_width_attributesObject



58
59
60
# File 'lib/money_s3/parsers/vlajka_type.rb', line 58

def rf_width_attributes
  attributes_at 'RFWidth'
end

#titleObject



30
31
32
# File 'lib/money_s3/parsers/vlajka_type.rb', line 30

def title
  at 'Title'
end

#title_attributesObject



34
35
36
# File 'lib/money_s3/parsers/vlajka_type.rb', line 34

def title_attributes
  attributes_at 'Title'
end

#to_hObject



70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/money_s3/parsers/vlajka_type.rb', line 70

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

  hash[:id_user] = id_user if has? 'IDUser'
  hash[:id_user_attributes] = id_user_attributes if has? 'IDUser'
  hash[:name_user] = name_user if has? 'NameUser'
  hash[:name_user_attributes] = name_user_attributes if has? 'NameUser'
  hash[:id_flag] = id_flag if has? 'IDFlag'
  hash[:id_flag_attributes] = id_flag_attributes if has? 'IDFlag'
  hash[:title] = title if has? 'Title'
  hash[:title_attributes] = title_attributes if has? 'Title'
  hash[:enabled] = enabled if has? 'Enabled'
  hash[:enabled_attributes] = enabled_attributes if has? 'Enabled'
  hash[:remark] = remark if has? 'Remark'
  hash[:remark_attributes] = remark_attributes if has? 'Remark'
  hash[:rf_width] = rf_width if has? 'RFWidth'
  hash[:rf_width_attributes] = rf_width_attributes if has? 'RFWidth'
  hash[:rf_height] = rf_height if has? 'RFHeight'
  hash[:rf_height_attributes] = rf_height_attributes if has? 'RFHeight'

  hash
end