Skip to content

Commit

Permalink
Resolved PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sudeeptarlekar committed Aug 7, 2020
1 parent 1221863 commit d8192d5
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions lib/faker/default/drone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class << self
# @example
# Faker::Drone.name #=> "DJI Mavic Air 2"
#
# @faker.version 2.13.0
# @faker.version next
def name
fetch('drone.name')
end
Expand All @@ -24,7 +24,7 @@ def name
# @example
# Faker::Drone.weight #=> "570g"
#
# @faker.version 2.13.0
# @faker.version next
def weight
parse('drone.weight')
end
Expand All @@ -37,7 +37,7 @@ def weight
# @example
# Faker::Drone.max_ascent_speed #=> "4m/s"
#
# @faker.version 2.13.0
# @faker.version next
def max_ascent_speed
parse('drone.max_ascent_speed')
end
Expand All @@ -50,7 +50,7 @@ def max_ascent_speed
# @example
# Faker::Drone.max_descent_speed #=> "4m/s"
#
# @faker.version 2.13.0
# @faker.version next
def max_descent_speed
parse('drone.max_descent_speed')
end
Expand All @@ -63,7 +63,7 @@ def max_descent_speed
# @example
# Faker::Drone.flight_time #=> "34Mins"
#
# @faker.version 2.13.0
# @faker.version next
def flight_time
parse('drone.flight_time')
end
Expand All @@ -76,7 +76,7 @@ def flight_time
# @example
# Faker::Drone.max_altitude #=> "5000m"
#
# @faker.version 2.13.0
# @faker.version next
def max_altitude
parse('drone.max_altitude')
end
Expand All @@ -89,7 +89,7 @@ def max_altitude
# @example
# Faker::Drone.max_flight_distance #=> "18500m"
#
# @faker.version 2.13.0
# @faker.version next
def max_flight_distance
parse('drone.max_flight_distance')
end
Expand All @@ -102,7 +102,7 @@ def max_flight_distance
# @example
# Faker::Drone.max_speed #=> "19m/s"
#
# @faker.version 2.13.0
# @faker.version next
def max_speed
parse('drone.max_speed')
end
Expand All @@ -115,7 +115,7 @@ def max_speed
# @example
# Faker::Drone.max_wind_resistance #=> "10.5m/s"
#
# @faker.version 2.13.0
# @faker.version next
def max_wind_resistance
parse('drone.max_wind_resistance')
end
Expand All @@ -128,7 +128,7 @@ def max_wind_resistance
# @example
# Faker::Drone.max_angular_velocity #=> "250 degree/s"
#
# @faker.version 2.13.0
# @faker.version next
def max_angular_velocity
parse('drone.max_angular_velocity')
end
Expand All @@ -141,7 +141,7 @@ def max_angular_velocity
# @example
# Faker::Drone.max_tilt_angle #=> "35 degrees"
#
# @faker.version 2.13.0
# @faker.version next
def max_tilt_angle
parse('drone.max_tilt_angle')
end
Expand All @@ -154,7 +154,7 @@ def max_tilt_angle
# @example
# Faker::Drone.operating_temperature #=> "14-104F"
#
# @faker.version 2.13.0
# @faker.version next
def operating_temperature
parse('drone.operating_temperature')
end
Expand All @@ -167,7 +167,7 @@ def operating_temperature
# @example
# Faker::Drone.battery_capacity #=> "3500mAh"
#
# @faker.version 2.13.0
# @faker.version next
def battery_capacity
parse('drone.battery_capacity')
end
Expand All @@ -180,7 +180,7 @@ def battery_capacity
# @example
# Faker::Drone.battery_voltage #=> "13.2V"
#
# @faker.version 2.13.0
# @faker.version next
def battery_voltage
parse('drone.battery_voltage')
end
Expand All @@ -193,7 +193,7 @@ def battery_voltage
# @example
# Faker::Drone.battery_type #=> "LiPo 4S"
#
# @faker.version 2.13.0
# @faker.version next
def battery_type
parse('drone.battery_type')
end
Expand All @@ -206,7 +206,7 @@ def battery_type
# @example
# Faker::Drone.battery_weight #=> "198g"
#
# @faker.version 2.13.0
# @faker.version next
def battery_weight
parse('drone.battery_weight')
end
Expand All @@ -219,7 +219,7 @@ def battery_weight
# @example
# Faker::Drone.charging_temperature #=> "41-104F"
#
# @faker.version 2.13.0
# @faker.version next
def charging_temperature
parse('drone.charging_temperature')
end
Expand All @@ -232,7 +232,7 @@ def charging_temperature
# @example
# Faker::Drone.max_charging_power #=> "38W"
#
# @faker.version 2.13.0
# @faker.version next
def max_charging_power
parse('drone.max_charging_power')
end
Expand All @@ -245,7 +245,7 @@ def max_charging_power
# @example
# Faker::Drone.iso #=> "100-3200"
#
# @faker.version 2.13.0
# @faker.version next
def iso
parse('drone.iso')
end
Expand All @@ -258,7 +258,7 @@ def iso
# @example
# Faker::Drone.max_resolution #=> "48MP"
#
# @faker.version 2.13.0
# @faker.version next
def max_resolution
parse('drone.max_resolution')
end
Expand All @@ -271,7 +271,7 @@ def max_resolution
# @example
# Faker::Drone.photo_format #=> "JPEG"
#
# @faker.version 2.13.0
# @faker.version next
def photo_format
parse('drone.photo_format')
end
Expand All @@ -284,7 +284,7 @@ def photo_format
# @example
# Faker::Drone.video_format #=> "MP4"
#
# @faker.version 2.13.0
# @faker.version next
def video_format
parse('drone.video_format')
end
Expand All @@ -297,7 +297,7 @@ def video_format
# @example
# Faker::Drone.shutter_speed_range #=> "8-1/8000s"
#
# @faker.version 2.13.0
# @faker.version next
def shutter_speed_range
"#{fetch('drone.max_shutter_speed')}-#{fetch('drone.min_shutter_speed')}s"
end
Expand All @@ -310,7 +310,7 @@ def shutter_speed_range
# @example
# Faker::Drone.max_shutter_speed #=> "60s"
#
# @faker.version 2.13.0
# @faker.version next
def max_shutter_speed
"#{fetch('drone.max_shutter_speed')}s"
end
Expand All @@ -323,7 +323,7 @@ def max_shutter_speed
# @example
# Faker::Drone.min_shutter_speed #=> "1/8000s"
#
# @faker.version 2.13.0
# @faker.version next
def min_shutter_speed
"#{fetch('drone.min_shutter_speed')}s"
end
Expand Down

0 comments on commit d8192d5

Please sign in to comment.