README.md in spacex-0.0.3 vs README.md in spacex-0.0.4

- old
+ new

@@ -1,13 +1,24 @@ -# SpaceX Ruby Client -Ruby library to consume SpaceX API +SpaceX Ruby Client +=============== ---- +[![Gem Version](https://badge.fury.io/rb/spacex.svg)](https://badge.fury.io/rb/spacex) +[![Build Status](https://travis-ci.com/rodolfobandeira/spacex.svg?branch=master)](https://travis-ci.org/rodolfobandeira/spacex) -### Using: +Ruby library that consumes SpaceX API +## Install + +`gem install spacex` + + +## Using + +### Latest Launch + ```ruby +require 'spacex' latest_launch = SPACEX::Launches.latest latest_launch.flight_number # 67 latest_launch.mission_name # 'Merah Putih' latest_launch.launch_year # '2018' @@ -72,5 +83,28 @@ latest_launch.details # 'Indonesian comsat intended to replace the aging Telkom 1 at 108° E. First reflight of a Block 5-version booster.' latest_launch.upcoming # false latest_launch.static_fire_date_utc # '2018-08-02T15:53:00.000Z' ``` + +### Company Info + +```ruby +company_info = SPACEX::CompanyInfo.info + +company_info.name # 'SpaceX' +company_info.founder # 'Elon Musk' +company_info.founded # 2002 +company_info.employees # 7000 +company_info.vehicles # 3 +company_info.launche_sites # nil +company_info.test_sites # 1 +company_info.ceo # 'Elon Musk' +company_info.cto # 'Elon Musk' +company_info.coo # 'Gwynne Shotwell' +company_info.cto_propulsion # 'Tom Mueller' +company_info.valuation # 15_000_000_000 +company_info.headquarters.address # 'Rocket Road' +company_info.headquarters.city # 'Hawthorne' +company_info.headquarters.state # 'California' +company_info.summary # 'SpaceX designs, manufactures and launches advanced rockets and spacecraft. The company was founded in 2002 to revolutionize space technology, with the ultimate goal of enabling people to live on other planets.' +```