Class: CommodityScraper::Commodity

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

Instance Attribute Summary collapse

Method Summary

Methods inherited from Struct

#to_json, #to_map

Instance Attribute Details

#changeObject

Returns the value of attribute change

Returns:

  • (Object)

    the current value of change



6
7
8
# File 'lib/commode.rb', line 6

def change
  @change
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



6
7
8
# File 'lib/commode.rb', line 6

def name
  @name
end

#percent_changeObject

Returns the value of attribute percent_change

Returns:

  • (Object)

    the current value of percent_change



6
7
8
# File 'lib/commode.rb', line 6

def percent_change
  @percent_change
end

#priceObject

Returns the value of attribute price

Returns:

  • (Object)

    the current value of price



6
7
8
# File 'lib/commode.rb', line 6

def price
  @price
end