Module: FHIR::Sections::Feed
- Included in:
- Client
- Defined in:
- lib/fhir_client/sections/feed.rb
Constant Summary collapse
- FORWARD =
:next_link
- BACKWARD =
:previous_link
- FIRST =
:first_link
- LAST =
:last_link
Instance Method Summary collapse
Instance Method Details
#next_page(current, page = FORWARD) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/fhir_client/sections/feed.rb', line 9 def next_page(current, page = FORWARD) bundle = current.resource link = bundle.method(page).call return nil unless link reply = get strip_base(link.url), fhir_headers reply.resource = parse_reply(current.resource_class, @default_format, reply) reply.resource_class = current.resource_class reply end |