brownpapertickets 0.0.8 → 0.0.9

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.
@@ -6,9 +6,9 @@ module BrownPaperTickets
6
6
 
7
7
  attr_reader :attributes, :server_response
8
8
 
9
- REQUIRED_ATTR=["date_id", "price_id", "event_id"]
9
+ REQUIRED_ATTR=["event_id"]
10
10
 
11
- ATTRS=["event_id", "date_id", "price_id"]
11
+ ATTRS=["event_id", "title", "link", "event_status", "tickets_sold", "collected_value", "paid_value"]
12
12
 
13
13
  def initialize(id, account, attributes={})
14
14
  @@id = id
@@ -46,9 +46,9 @@ module BrownPaperTickets
46
46
  end
47
47
 
48
48
  def create_report
49
- body = {"id" => @@id, "account" => @@account, "event_id" => event_id, "date_id"=>date_id, "price_id" => price_id}
50
- query = self.attributes.merge("id" => @@id, "account" => @@account,"event_id" => event_id, "date_id"=>date_id, "price_id" => price_id )
51
- response = BrownPaperTickets::Httpost.new(Net::HTTP::Post, "https://www.brownpapertickets.com/api2/orderlist",:query => query)
49
+ body = {"id" => @@id, "account" => @@account, "event_id" => event_id}
50
+ query = self.attributes.merge("id" => @@id, "account" => @@account)
51
+ response = BrownPaperTickets::Httpost.new(Net::HTTP::Get, "https://www.brownpapertickets.com/api2/eventsales",:query => query)
52
52
  p response
53
53
  response.options[:body] = query
54
54
  st = response.perform
@@ -1,3 +1,3 @@
1
1
  module BrownPaperTickets
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brownpapertickets
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alvaro Insignares