Sha256: dab677b664b6b0b6bf5e621d59e29af4a29502bbaee3348fcc5413b8e13935b6

Contents?: true

Size: 435 Bytes

Versions: 59

Compression:

Stored size: 435 Bytes

Contents

module Cobrato
  module Resources
    class ChargingType < Base
      crud :all

      def list
        http.get(resource_base_path) do |response|
          bank_billets =  parsed_body(response)[collection_name]['bank_billets'].map do |item|
                            Cobrato::Entities::BankBillet.new(item)
                          end

          Struct.new(:bank_billets).new(bank_billets)
        end
      end

    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
cobrato-client-0.23.0.beta8 lib/cobrato/resources/charging_type.rb
cobrato-client-0.23.0.beta7 lib/cobrato/resources/charging_type.rb
cobrato-client-0.23.0.beta6 lib/cobrato/resources/charging_type.rb
cobrato-client-0.23.0.beta5 lib/cobrato/resources/charging_type.rb
cobrato-client-0.23.0.beta4 lib/cobrato/resources/charging_type.rb
cobrato-client-0.23.0.beta3 lib/cobrato/resources/charging_type.rb
cobrato-client-0.23.0.beta2 lib/cobrato/resources/charging_type.rb
cobrato-client-0.23.0.beta1 lib/cobrato/resources/charging_type.rb
cobrato-client-0.22.0 lib/cobrato/resources/charging_type.rb
cobrato-client-0.21.0 lib/cobrato/resources/charging_type.rb
cobrato-client-0.20.0 lib/cobrato/resources/charging_type.rb
cobrato-client-0.19.0 lib/cobrato/resources/charging_type.rb
cobrato-client-0.18.0 lib/cobrato/resources/charging_type.rb
cobrato-client-0.17.0 lib/cobrato/resources/charging_type.rb
cobrato-client-0.16.0 lib/cobrato/resources/charging_type.rb
cobrato-client-0.15.0 lib/cobrato/resources/charging_type.rb
cobrato-client-0.14.0 lib/cobrato/resources/charging_type.rb
cobrato-client-0.13.0 lib/cobrato/resources/charging_type.rb
cobrato-client-0.12.0 lib/cobrato/resources/charging_type.rb
cobrato-client-0.11.0 lib/cobrato/resources/charging_type.rb