Class: Infogram::Themes
Instance Method Summary collapse
-
#initialize(config = {}) ⇒ Themes
constructor
A new instance of Themes.
- #list(opts = {}) ⇒ Object
Methods inherited from Resources
#decode_params, #signature, #url_escaping
Constructor Details
#initialize(config = {}) ⇒ Themes
Returns a new instance of Themes.
3 4 5 |
# File 'lib/infogram/themes.rb', line 3 def initialize(config = {}) @config = config end |
Instance Method Details
#list(opts = {}) ⇒ Object
7 8 9 10 11 |
# File 'lib/infogram/themes.rb', line 7 def list(opts = {}) opts[:api_key] = @config[:api_key] opts[:api_sig] = signature('GET', 'themes', opts, @config) HTTParty.get("#{@config[:api_url]}/themes", query: opts) end |