class Sncf::Parsers::Default
Public Class Methods
new(api_response)
click to toggle source
# File lib/sncf/parsers/default.rb, line 4 def initialize(api_response) @api_response = api_response end
Protected Instance Methods
create_model(model_name, attributes)
click to toggle source
# File lib/sncf/parsers/default.rb, line 10 def create_model(model_name, attributes) Object.const_get("Sncf::Models::#{model_name}").new attributes end