Module: TMS::Util::HalLinkParser
- Included in:
- Client
- Defined in:
- lib/tms_client/util/hal_link_parser.rb
Instance Method Summary collapse
Instance Method Details
#parse_links(_links) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/tms_client/util/hal_link_parser.rb', line 4 def parse_links(_links) @resources = {} return if _links.nil? parse_link(_links) and return if _links.is_a?(Hash) _links.each { |link| parse_link(link) } end |
#subresources ⇒ Object
11 12 13 |
# File 'lib/tms_client/util/hal_link_parser.rb', line 11 def subresources @resources end |