class BerlinBuehnen::ListResponse
Constants
- LIMIT
- META
- NEXT
- OBJECTS
- OFFSET
- PREVIOUS
- TOTAL_COUNT
Public Instance Methods
data()
click to toggle source
# File lib/berlin_buehnen/list_response.rb, line 13 def data @data ||= @json_response[OBJECTS] end
limit()
click to toggle source
# File lib/berlin_buehnen/list_response.rb, line 25 def limit meta[LIMIT] end
next?()
click to toggle source
# File lib/berlin_buehnen/list_response.rb, line 17 def next? !meta[NEXT].nil? end
offset()
click to toggle source
# File lib/berlin_buehnen/list_response.rb, line 29 def offset meta[OFFSET] end
previous?()
click to toggle source
# File lib/berlin_buehnen/list_response.rb, line 21 def previous? !meta[PREVIOUS].nil? end
total_count()
click to toggle source
# File lib/berlin_buehnen/list_response.rb, line 33 def total_count meta[TOTAL_COUNT] end
Private Instance Methods
meta()
click to toggle source
# File lib/berlin_buehnen/list_response.rb, line 38 def meta @meta ||= @json_response[META] end