@@ -11,7 +11,7 @@ require 'heroics'
1111require 'uri'
1212require 'moneta'
1313
14- module <%= @ module_name %>
14+ module <%= module_name %>
1515 # Get a Client configured to use HTTP Basic or header-based authentication.
1616 #
1717 # @param api_key [String] The API key to use when connecting.
@@ -75,29 +75,29 @@ module <%= @module_name %>
7575 if options[:default_headers]
7676 final_options[:default_headers].merge!(options[:default_headers])
7777 end
78- final_options[:cache] = options[:cache] || <%= @ cache %>
78+ final_options[:cache] = options[:cache] || <%= cache %>
7979 final_options[:url] = options[:url] if options[:url]
8080 final_options[:user] = options[:user] if options[:user]
8181 final_options
8282 end
8383
8484 # Get the default options.
8585 def self.default_options
86- default_headers = <%= @ default_headers %>
86+ default_headers = <%= default_headers %>
8787 {
8888 default_headers: default_headers,
89- url: "<%= @ url %> "
89+ url: "<%= url %> "
9090 }
9191 end
9292
9393 private_class_method :default_options, :custom_options
9494
95- # <%= @ description %>
95+ # <%= description %>
9696 class Client
9797 def initialize(client)
9898 @client = client
9999 end
100- <% for resource in @ resources %>
100+ <% for resource in resources %>
101101
102102 # <%= resource . description %>
103103 #
@@ -109,7 +109,7 @@ module <%= @module_name %>
109109 end
110110
111111 private
112- <% for resource in @ resources %>
112+ <% for resource in resources %>
113113
114114 # <%= resource . description %>
115115 class <%= resource . class_name %>
@@ -133,6 +133,6 @@ module <%= @module_name %>
133133 <% end %>
134134
135135 SCHEMA = Heroics::Schema.new(MultiJson.load(< < - 'HEROICS_SCHEMA'))
136- <%= @ schema %>
136+ <%= schema %>
137137HEROICS_SCHEMA
138138end
0 commit comments