graph_decorator 0.1.8 → 0.1.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.
- checksums.yaml +4 -4
- data/lib/graph_decorator.rb +7 -5
- data/lib/graph_decorator/version.rb +1 -1
- metadata +1 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: c415bfdb5216c0aefc86318f4c601086ac15badf
         | 
| 4 | 
            +
              data.tar.gz: c4386dcfd61354d2a1cddad53b1a37ab95ffc8e4
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: bd2dd6a53d78a58aa0e67a89458871dc290f0860aa2529a9c4337b6ee664d148a2102bc832572bc05546abf23fd824ed99066f5066d66e819c951bfde803eceb
         | 
| 7 | 
            +
              data.tar.gz: 24bfbc60e205f0044390b7db1a44c7c3e77220056df88ef3ad414d37b7d105f880cab156d32a4f8bb68574e9d4bbcacae5568adebee3254e10a65ebc694ad559
         | 
    
        data/lib/graph_decorator.rb
    CHANGED
    
    | @@ -342,12 +342,12 @@ class ReturningCustomers < GraphDecoration | |
| 342 342 | 
             
            	#this functionality initialises with the data from the application models
         | 
| 343 343 | 
             
            	def initialize(real_graph)
         | 
| 344 344 | 
             
            		super(real_graph)
         | 
| 345 | 
            -
            		@y_name_1 = "New Cusomtomers"
         | 
| 346 | 
            -
                    @y_name_2 = "Frequent Customers"
         | 
| 345 | 
            +
            		@y_name_1 = "New Cusomtomers count"
         | 
| 346 | 
            +
                    @y_name_2 = "Frequent Customers count"
         | 
| 347 347 | 
             
                    @y_name_3 = "Total no of sign in count in this website"
         | 
| 348 | 
            +
                    #@new_customer_count = Member.select("sign_in_count").group_by{|o| o.sign_in_count}.keys
         | 
| 348 349 | 
             
                    @cust_new = 0
         | 
| 349 350 | 
             
                    @customer_return = 0
         | 
| 350 | 
            -
                    #@new_customer_count = Member.select("sign_in_count").group_by{|o| o.sign_in_count}.keys
         | 
| 351 351 | 
             
                    @new_customer_count = []
         | 
| 352 352 | 
             
                    @y_cust_data = Member.all
         | 
| 353 353 | 
             
                    @y_cust_data.each do |cp|
         | 
| @@ -362,8 +362,10 @@ class ReturningCustomers < GraphDecoration | |
| 362 362 | 
             
                    end
         | 
| 363 363 | 
             
                    @y_data_1 = @cust_new
         | 
| 364 364 | 
             
                    @y_data_2 = @customer_return
         | 
| 365 | 
            -
                    @x_name =  | 
| 365 | 
            +
                    @x_name = 'Customer Ratio'
         | 
| 366 366 | 
             
                    @y_data_3 = Member.sum("sign_in_count")
         | 
| 367 | 
            -
                    
         | 
| 367 | 
            +
                    puts(@y_data_1)
         | 
| 368 | 
            +
                    puts(@y_data_2)
         | 
| 369 | 
            +
            		puts(@y_data_3)
         | 
| 368 370 | 
             
            	end
         | 
| 369 371 | 
             
            end
         |