module Segurocomar::Core::Motorcycles
Public Instance Methods
get_motorcycle_brands(attrs={})
click to toggle source
# File lib/segurocomar/core/motorcycles.rb, line 4 def get_motorcycle_brands(attrs={}) results = get_request('/motorcycle_brands', attrs) results[:body].map { |r| Segurocomar::Entity::MotorcycleBrand.new(r) } end
get_motorcycles(motorcycle_brand_id)
click to toggle source
# File lib/segurocomar/core/motorcycles.rb, line 10 def get_motorcycles(motorcycle_brand_id) results = get_request('/motorcycles', { motorcycle_brand_id: motorcycle_brand_id }) results[:body].map { |r| Segurocomar::Entity::Motorcycle.new(r) } end