lib/createsend/segment.rb in createsend-1.1.1 vs lib/createsend/segment.rb in createsend-2.0.0

- old
+ new

@@ -34,11 +34,12 @@ :Clauses => clauses }.to_json } response = CreateSend.post "/segments/#{segment_id}/rules.json", options end # Gets the active subscribers in this segment. - def subscribers(date, page=1, page_size=1000, order_field="email", order_direction="asc") + def subscribers(date, page=1, page_size=1000, order_field="email", + order_direction="asc") options = { :query => { :date => date, :page => page, :pagesize => page_size, :orderfield => order_field, @@ -60,10 +61,10 @@ # Deletes this segment. def delete response = CreateSend.delete "/segments/#{segment_id}.json", {} end - + private def get(action, options = {}) CreateSend.get uri_for(action), options end \ No newline at end of file