Class: Faker::Drone
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
-
.battery_capacity ⇒ String
Returns the drone battery capacity.
-
.battery_type ⇒ String
Returns the battery type.
-
.battery_voltage ⇒ String
Returns battery voltage.
-
.battery_weight ⇒ String
Returns total battery weight in grams.
-
.charging_temperature ⇒ String
Returns charging temperature for battery in Fahrenheit.
-
.flight_time ⇒ String
Returns max flight time for drone in optimal conditions.
-
.iso ⇒ String
Returns camera ISO range for drone.
-
.max_altitude ⇒ String
Returns max altitude drone can go above sea level in meters.
-
.max_angular_velocity ⇒ String
Returns max angular velocity of drone in degrees/s.
-
.max_ascent_speed ⇒ String
Returns maximum ascent speed for drone in m/s.
-
.max_charging_power ⇒ String
Returns max chargin power required for battery.
-
.max_descent_speed ⇒ String
Returns maximum descent speed for drone in m/s.
-
.max_flight_distance ⇒ String
Returns how far drone can go in optimal condition when full charged in meters.
-
.max_resolution ⇒ String
Returns max camera resolution in MP“.
-
.max_shutter_speed ⇒ String
Returns max shutter speed for camera.
-
.max_speed ⇒ String
Returns max horizontal speed by drone in m/s.
-
.max_tilt_angle ⇒ String
Returns max tilt angle drone can go in degrees.
-
.max_wind_resistance ⇒ String
Returns max wind resistance by drone in m/s.
-
.min_shutter_speed ⇒ String
Returns min shutter speed for camera.
-
.name ⇒ string
Returns random drone name with company.
-
.operating_temperature ⇒ String
Returns operating temperature for drone in Fahrenheit.
-
.photo_format ⇒ String
Returns photo format for drone.
-
.shutter_speed_range ⇒ String
Returns max and min shutter speed for camera.
-
.video_format ⇒ String
Returns video format.
-
.weight ⇒ String
Returns total drone weight in grams.
Methods inherited from Base
bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, shuffle!, translate, unique, with_locale
Class Method Details
.battery_capacity ⇒ String
Returns the drone battery capacity
171 172 173 |
# File 'lib/faker/default/drone.rb', line 171 def battery_capacity parse('drone.battery_capacity') end |
.battery_type ⇒ String
Returns the battery type
197 198 199 |
# File 'lib/faker/default/drone.rb', line 197 def battery_type parse('drone.battery_type') end |
.battery_voltage ⇒ String
Returns battery voltage
184 185 186 |
# File 'lib/faker/default/drone.rb', line 184 def battery_voltage parse('drone.battery_voltage') end |
.battery_weight ⇒ String
Returns total battery weight in grams
210 211 212 |
# File 'lib/faker/default/drone.rb', line 210 def battery_weight parse('drone.battery_weight') end |
.charging_temperature ⇒ String
Returns charging temperature for battery in Fahrenheit
223 224 225 |
# File 'lib/faker/default/drone.rb', line 223 def charging_temperature parse('drone.charging_temperature') end |
.flight_time ⇒ String
Returns max flight time for drone in optimal conditions
67 68 69 |
# File 'lib/faker/default/drone.rb', line 67 def flight_time parse('drone.flight_time') end |
.iso ⇒ String
Returns camera ISO range for drone
249 250 251 |
# File 'lib/faker/default/drone.rb', line 249 def iso parse('drone.iso') end |
.max_altitude ⇒ String
Returns max altitude drone can go above sea level in meters
80 81 82 |
# File 'lib/faker/default/drone.rb', line 80 def max_altitude parse('drone.max_altitude') end |
.max_angular_velocity ⇒ String
Returns max angular velocity of drone in degrees/s
132 133 134 |
# File 'lib/faker/default/drone.rb', line 132 def max_angular_velocity parse('drone.max_angular_velocity') end |
.max_ascent_speed ⇒ String
Returns maximum ascent speed for drone in m/s
41 42 43 |
# File 'lib/faker/default/drone.rb', line 41 def max_ascent_speed parse('drone.max_ascent_speed') end |
.max_charging_power ⇒ String
Returns max chargin power required for battery
236 237 238 |
# File 'lib/faker/default/drone.rb', line 236 def max_charging_power parse('drone.max_charging_power') end |
.max_descent_speed ⇒ String
Returns maximum descent speed for drone in m/s
54 55 56 |
# File 'lib/faker/default/drone.rb', line 54 def max_descent_speed parse('drone.max_descent_speed') end |
.max_flight_distance ⇒ String
Returns how far drone can go in optimal condition when full charged in meters
93 94 95 |
# File 'lib/faker/default/drone.rb', line 93 def max_flight_distance parse('drone.max_flight_distance') end |
.max_resolution ⇒ String
Returns max camera resolution in MP“
262 263 264 |
# File 'lib/faker/default/drone.rb', line 262 def max_resolution parse('drone.max_resolution') end |
.max_shutter_speed ⇒ String
Returns max shutter speed for camera
314 315 316 |
# File 'lib/faker/default/drone.rb', line 314 def max_shutter_speed "#{fetch('drone.max_shutter_speed')}#{fetch('drone.shutter_speed_units')}" end |
.max_speed ⇒ String
Returns max horizontal speed by drone in m/s
106 107 108 |
# File 'lib/faker/default/drone.rb', line 106 def max_speed parse('drone.max_speed') end |
.max_tilt_angle ⇒ String
Returns max tilt angle drone can go in degrees
145 146 147 |
# File 'lib/faker/default/drone.rb', line 145 def max_tilt_angle parse('drone.max_tilt_angle') end |
.max_wind_resistance ⇒ String
Returns max wind resistance by drone in m/s
119 120 121 |
# File 'lib/faker/default/drone.rb', line 119 def max_wind_resistance parse('drone.max_wind_resistance') end |
.min_shutter_speed ⇒ String
Returns min shutter speed for camera
327 328 329 |
# File 'lib/faker/default/drone.rb', line 327 def min_shutter_speed "#{fetch('drone.min_shutter_speed')}#{fetch('drone.shutter_speed_units')}" end |
.name ⇒ string
Returns random drone name with company
15 16 17 |
# File 'lib/faker/default/drone.rb', line 15 def name fetch('drone.name') end |
.operating_temperature ⇒ String
Returns operating temperature for drone in Fahrenheit
158 159 160 |
# File 'lib/faker/default/drone.rb', line 158 def parse('drone.operating_temperature') end |
.photo_format ⇒ String
Returns photo format for drone
275 276 277 |
# File 'lib/faker/default/drone.rb', line 275 def photo_format parse('drone.photo_format') end |
.shutter_speed_range ⇒ String
Returns max and min shutter speed for camera
301 302 303 |
# File 'lib/faker/default/drone.rb', line 301 def shutter_speed_range "#{fetch('drone.max_shutter_speed')}-#{fetch('drone.min_shutter_speed')}#{fetch('drone.shutter_speed_units')}" end |
.video_format ⇒ String
Returns video format
288 289 290 |
# File 'lib/faker/default/drone.rb', line 288 def video_format parse('drone.video_format') end |
.weight ⇒ String
Returns total drone weight in grams
28 29 30 |
# File 'lib/faker/default/drone.rb', line 28 def weight parse('drone.weight') end |