class BerlinBuehnen::Response
Attributes
json_response[R]
Public Class Methods
create(response)
click to toggle source
# File lib/berlin_buehnen/response.rb, line 5 def self.create(response) json_response = JSON.parse(response.body) json_response.has_key?("meta") ? ListResponse.new(json_response) : new(json_response) end
new(json_response)
click to toggle source
# File lib/berlin_buehnen/response.rb, line 11 def initialize(json_response) @json_response = json_response end
Public Instance Methods
data()
click to toggle source
# File lib/berlin_buehnen/response.rb, line 15 def data @data ||= @json_response end