Module: Bomtempo

Defined in:
lib/bomtempo.rb,
lib/bomtempo/version.rb,
lib/bomtempo/one_call.rb,
lib/bomtempo/coordenate.rb

Defined Under Namespace

Classes: Coordenate, Error, OneCall

Constant Summary collapse

VERSION =
"0.1.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.access_tokenObject

Returns the value of attribute access_token.



12
13
14
# File 'lib/bomtempo.rb', line 12

def access_token
  @access_token
end

Class Method Details

.config {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Bomtempo)

    the object that the method was called on



14
15
16
# File 'lib/bomtempo.rb', line 14

def config 
  yield self
end

.get_tokenObject



23
24
25
# File 'lib/bomtempo.rb', line 23

def get_token
  @access_token
end

.weather_in(args) ⇒ Object



18
19
20
21
# File 'lib/bomtempo.rb', line 18

def weather_in(args)
  locate = Coordenate.new(args).get
  OneCall.new(locate).next_five_days
end