Sha256: 326b5642958cb774239398272c058d82d4f5a8b04040b20630bd9af17c8386a8

Contents?: true

Size: 462 Bytes

Versions: 1

Compression:

Stored size: 462 Bytes

Contents

require "alexagram/version"
require "alexagram/session"
require "alexagram/request"
require "alexagram/intent"
require 'json'

module Alexagram
  @json
  
  def self.raw_json
    @json
  end
  
  def self.raw_json= json
    @json = json
  end
  
  def self.version
    dictionary = JSON.parse @json
    dictionary['version']
  end
  
  def self.session
    Alexagram::Session.new(@json)
  end
  
  def self.request
    Alexagram::Request.new(@json)
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alexagram-1.0 lib/alexagram.rb