Method: UntitledApi::ApiV1SitesRequest.from_hash
- Defined in:
- lib/untitled_api/models/api_v1_sites_request.rb
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
40 41 42 43 44 45 46 47 48 |
# File 'lib/untitled_api/models/api_v1_sites_request.rb', line 40 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. name = hash.key?('name') ? hash['name'] : SKIP # Create object from extracted values. ApiV1SitesRequest.new(name) end |