Method: AWSData::Base#parse_endpoint_data
- Defined in:
- lib/aws-data/base.rb
#parse_endpoint_data(data) ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/aws-data/base.rb', line 44 def parse_endpoint_data(data) ret = [] data.split("\n").each do |el| if el.end_with? "/" el.gsub!(/\/$/, "") ret << Record.new(el, true) else ret << Record.new(el, false) end end return ret end |