Sha256: eed4cf24c8cb17594cd0649f381a8d09d45424138fdc9041e37871124a365451

Contents?: true

Size: 272 Bytes

Versions: 5

Compression:

Stored size: 272 Bytes

Contents

module BluepanClient
  class GetStrategiesResponse < BaseResponse

    attribute :strategies, Array, lazy: true, default: :default_strategies

    private

    def default_strategies
      parsed_body.map { |strategy_hash| Strategy.new(strategy_hash) }
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bluepan_client-1.0.0 lib/bluepan_client/responses/get_strategies_response.rb
bluepan_client-0.4.0 lib/bluepan_client/responses/get_strategies_response.rb
bluepan_client-0.3.0 lib/bluepan_client/responses/get_strategies_response.rb
bluepan_client-0.2.0 lib/bluepan_client/responses/get_strategies_response.rb
bluepan_client-0.1.0 lib/bluepan_client/responses/get_strategies_response.rb