lc-api 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/lc-api/api.rb CHANGED
@@ -19,7 +19,6 @@ module LcApi
19
19
 
20
20
  (uri = uri + "/#{param}") if (param)
21
21
 
22
- puts "uri is: #{uri}"
23
22
  HTTParty.get("#{uri}?key=#{LcApi.key}")
24
23
  end
25
24
  end
@@ -37,4 +36,4 @@ module LcApi
37
36
  end
38
37
 
39
38
  end
40
- end
39
+ end
@@ -1,6 +1,6 @@
1
1
  module LcApi
2
2
  class Series < Resource
3
- ATTRIBUTES = %w[id description hashtag slug parts promo viewable start_date end_date]
3
+ ATTRIBUTES = %w[id title description hashtag slug parts promo viewable start_date end_date]
4
4
  define_attribute_methods(ATTRIBUTES)
5
5
  end
6
6
  end
@@ -4,12 +4,10 @@ module LcApi
4
4
  class Resource
5
5
  class << self
6
6
 
7
- def id(id, options=nil)
8
- bool = options ? true : false
9
- (options = {}) unless (options)
7
+ def id(id)
10
8
  uri = member_name # ie 'message'
11
9
  uri += "/#{id}" if id
12
- parse_response(API.get(uri, options), bool) # method missing
10
+ parse_response(API.get(uri)) # method missing
13
11
  end
14
12
 
15
13
  def all
@@ -18,6 +16,7 @@ module LcApi
18
16
  end
19
17
 
20
18
  def parse_response(response, multiple=false)
19
+ #puts "RESPONSE IS: #{response.parsed_response}"
21
20
  case response.code.to_i
22
21
  when 404
23
22
  raise LcApi::API::NotFound.new(response), "Resource was not found"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lc-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: