Module: TMS::Util::HalLinkParser
- Included in:
- Client
- Defined in:
- lib/tms_client/util/hal_link_parser.rb
Instance Method Summary collapse
-
#parse_links(_links) ⇒ Object
def self.included(base) base.send(:include, TMS::CoreExt) end.
- #subresources ⇒ Object
Instance Method Details
#parse_links(_links) ⇒ Object
def self.included(base)
base.send(:include, TMS::CoreExt)
end
8 9 10 11 12 13 |
# File 'lib/tms_client/util/hal_link_parser.rb', line 8 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
15 16 17 |
# File 'lib/tms_client/util/hal_link_parser.rb', line 15 def subresources @resources end |