Module: GoPlan

Defined in:
lib/goplan.rb

Defined Under Namespace

Classes: General, GoPlanError, InformGoPlan, NotFound, RateLimitExceeded, Unauthorized, Unavailable

Class Method Summary collapse

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (GoPlan)

    the object that the method was called on



33
34
35
36
37
38
39
# File 'lib/goplan.rb', line 33

def self.configure
  yield self
    
  GoPlan.token = token
  GoPlan.secret = secret
  true
end

.secretObject



49
50
51
# File 'lib/goplan.rb', line 49

def self.secret
  @secret
end

.secret=(secret) ⇒ Object



53
54
55
# File 'lib/goplan.rb', line 53

def self.secret=(secret)
  @secret = secret
end

.tokenObject



41
42
43
# File 'lib/goplan.rb', line 41

def self.token
  @token
end

.token=(token) ⇒ Object



45
46
47
# File 'lib/goplan.rb', line 45

def self.token=(token)
  @token = token
end