Module: DreamingGod

Defined in:
lib/dreaming_god.rb,
lib/dreaming_god/session.rb,
lib/dreaming_god/version.rb

Defined Under Namespace

Classes: Session

Constant Summary collapse

VERSION =
"0.1.3"

Class Method Summary collapse

Class Method Details

.dreamObject



19
20
21
22
23
24
25
# File 'lib/dreaming_god.rb', line 19

def self.dream
  Alexagram.raw_json = @raw_json
  session = Alexagram.session
  
  @dream_session = DreamingGod::Session.new(session)
  @dream_session.imagine(Alexagram.request)
end

.raw_jsonObject



10
11
12
# File 'lib/dreaming_god.rb', line 10

def self.raw_json
  @raw_json
end

.raw_json=(json) ⇒ Object



15
16
17
# File 'lib/dreaming_god.rb', line 15

def self.raw_json= json
  @raw_json = json
end