Class: FancyHands::History

Inherits:
Object
  • Object
show all
Defined in:
lib/fancyhands/v1/history.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ History

Returns a new instance of History.



6
7
8
# File 'lib/fancyhands/v1/history.rb', line 6

def initialize(client)
  @client = client
end

Instance Method Details

#get(key = "", phone_number = "", cursor = "") ⇒ Object



10
11
12
13
14
15
16
17
# File 'lib/fancyhands/v1/history.rb', line 10

def get(key="", phone_number="", cursor="")
  data = {
    :key => key,
    :phone_number => phone_number,
    :cursor => cursor
  }
  return @client.request.get("call/history", data)
end