class Kindara::Client

Public Class Methods

new(request) click to toggle source
# File lib/kindara/client.rb, line 4
def initialize(request)
  @request = request
end

Public Instance Methods

to_hash() click to toggle source
# File lib/kindara/client.rb, line 8
def to_hash
  {"token" => get_token}
end
to_hash_with_chart_data() click to toggle source
# File lib/kindara/client.rb, line 16
def to_hash_with_chart_data
  {"token" => get_token, "chart" => "yes"}
end
to_hash_with_cycle_days() click to toggle source
# File lib/kindara/client.rb, line 12
def to_hash_with_cycle_days
  {"token" => get_token, "cycle_day" => "yes"}
end

Private Instance Methods

get_token() click to toggle source
# File lib/kindara/client.rb, line 20
        def get_token
  @request.call.fetch("token")
end