Class: Stockboy::ProviderRepeater::ProviderStats

Inherits:
Struct
  • Object
show all
Defined in:
lib/stockboy/provider_repeater.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#data_Object Also known as: data?

Returns the value of attribute data_

Returns:

  • (Object)

    the current value of data_



8
9
10
# File 'lib/stockboy/provider_repeater.rb', line 8

def data_
  @data_
end

#data_sizeObject

Returns the value of attribute data_size

Returns:

  • (Object)

    the current value of data_size



8
9
10
# File 'lib/stockboy/provider_repeater.rb', line 8

def data_size
  @data_size
end

#data_timeObject

Returns the value of attribute data_time

Returns:

  • (Object)

    the current value of data_time



8
9
10
# File 'lib/stockboy/provider_repeater.rb', line 8

def data_time
  @data_time
end

Class Method Details

.from(provider) ⇒ Object



9
10
11
# File 'lib/stockboy/provider_repeater.rb', line 9

def self.from(provider)
  new(provider.data_time, provider.data_size, provider.data?)
end