class Planefinder::AirplaneMake
Contains aircraft makes like “Cessna” or “Robinson”
Attributes
category[R]
count[R]
id[R]
name[R]
Public Class Methods
new(json, category)
click to toggle source
# File lib/planefinder/airplane_make.rb, line 6 def initialize(json, category) @count = json['count'].to_i @id = json['id'].to_i @name = json['name'].to_s @category = category end
Public Instance Methods
==(other)
click to toggle source
# File lib/planefinder/airplane_make.rb, line 13 def ==(other) @count == other.count && @id == other.id && @name == other.name && @category == other.category end
get_models()
click to toggle source
# File lib/planefinder/airplane_make.rb, line 20 def get_models Planefinder.get_models_for_category_and_make(@category, self) end