module Jahuty::Snippet
Constants
- VERSION
Public Class Methods
get(id)
click to toggle source
# File lib/jahuty/snippet.rb, line 17 def self.get(id) raise "API key not set. Did you use key=?" if @@key.nil? @@get ||= Service::Get.new(Service::Connect.new.call(@@key)) snippet = @@get.call(id) snippet.to_s end
key=(key)
click to toggle source
# File lib/jahuty/snippet.rb, line 13 def self.key=(key) @@key = key end