Class: Infostrada::EditionRequest

Inherits:
BaseRequest show all
Defined in:
lib/infostrada/edition_request.rb

Constant Summary collapse

URLS =
{
  list: '/GetEditionList'
}

Constants inherited from BaseRequest

BaseRequest::RETRIES

Class Method Summary collapse

Methods inherited from BaseRequest

get!

Class Method Details

.get_listObject



7
8
9
10
11
12
13
14
15
16
# File 'lib/infostrada/edition_request.rb', line 7

def self.get_list
  list = get!(URLS[:list])

  editions = []
  list.each do |edition_hash|
    editions << Edition.new(edition_hash)
  end

  editions
end