Class: ChromeData::Style

Inherits:
CollectionRequest show all
Defined in:
lib/chrome_data/style.rb

Defined Under Namespace

Classes: BodyType

Instance Attribute Summary collapse

Attributes inherited from CollectionRequest

#id, #name

Class Method Summary collapse

Methods inherited from CollectionRequest

parse_response, request_name

Methods inherited from BaseRequest

build_request, client, endpoint_uri, find_elements, #initialize, make_request, parse_response, request, request_name, wsdl_body

Constructor Details

This class inherits a constructor from ChromeData::BaseRequest

Instance Attribute Details

#body_typesObject

These are only populated when accessing a style through a Vehicle



6
7
8
# File 'lib/chrome_data/style.rb', line 6

def body_types
  @body_types
end

#name_without_trimObject

These are only populated when accessing a style through a Vehicle



6
7
8
# File 'lib/chrome_data/style.rb', line 6

def name_without_trim
  @name_without_trim
end

#trimObject

These are only populated when accessing a style through a Vehicle



6
7
8
# File 'lib/chrome_data/style.rb', line 6

def trim
  @trim
end

Class Method Details

.find_all_by_model_id(model_id) ⇒ Object



8
9
10
11
12
# File 'lib/chrome_data/style.rb', line 8

def self.find_all_by_model_id(model_id)
  ChromeData.cache "#{request_name.underscore}-model_id-#{model_id}" do
    request 'modelId' => model_id
  end
end