class Fountain::Funnels
Attributes
current_page[R]
Collection current page
funnels[R]
Funnel
collection
last_page[R]
Collection last page
Public Class Methods
new(data)
click to toggle source
@param [Hash] data Raw funnel data
# File lib/fountain/funnels.rb, line 24 def initialize(data) raw_data = Util.stringify_hash_keys data pagination = raw_data['pagination'] if pagination.is_a? Hash @current_page = pagination['current'] @last_page = pagination['last'] end @funnels = raw_data['funnels'].map { |attr| Funnel.new attr } end
Public Instance Methods
inspect()
click to toggle source
# File lib/fountain/funnels.rb, line 34 def inspect format( '#<%<class_name>s:0x%<object_id>p @count="%<count>s">', class_name: self.class.name, object_id: object_id, count: count ) end