Class: Ean::Hotel

Inherits:
Object
  • Object
show all
Defined in:
lib/ean/hotel.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method = "") ⇒ Hotel

Returns a new instance of Hotel.



11
12
13
# File 'lib/ean/hotel.rb', line 11

def initialize(method="")
  @request = Ean::Request.new(method)
end

Instance Attribute Details

#requestObject

Returns the value of attribute request.



5
6
7
# File 'lib/ean/hotel.rb', line 5

def request
  @request
end

#responseObject

Returns the value of attribute response.



5
6
7
# File 'lib/ean/hotel.rb', line 5

def response
  @response
end

Class Method Details

.list(params = {}) ⇒ Object



7
8
9
# File 'lib/ean/hotel.rb', line 7

def self.list(params={})
  instance = self.new("list")
end