Class: Covetous::Data::Item

Inherits:
Shen
  • Object
show all
Defined in:
lib/covetous/data/item.rb

Instance Attribute Summary

Attributes inherited from Shen

#response, #url

Instance Method Summary collapse

Methods inherited from Shen

#method_missing

Constructor Details

#initialize(item_data) ⇒ Item

Returns a new instance of Item.



4
5
6
7
# File 'lib/covetous/data/item.rb', line 4

def initialize(item_data)
  @url = "#{Covetous::Data::BASE_URL}/item/#{item_data}"
  super
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Covetous::Shen