Sha256: 0dcd88b3c415f30f69b58a78e61a4dc2fd08da2b578602b0bd892deafdea8bca

Contents?: true

Size: 417 Bytes

Versions: 12

Compression:

Stored size: 417 Bytes

Contents

module TryApi
  class Header < TryApi::Base
    typesafe_accessor :name, String
    typesafe_accessor :description, String
    typesafe_accessor :global, Boolean, default: false

    class << self
      def parse(hash)
        instance = self.new
        instance.name = hash[:name]
        instance.global = hash[:global]
        instance.description = hash[:description]
        instance
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
try_api-0.0.18 app/models/try_api/header.rb
try_api-0.0.17 app/models/try_api/header.rb
try_api-0.0.16 app/models/try_api/header.rb
try_api-0.0.15 app/models/try_api/header.rb
try_api-0.0.14 app/models/try_api/header.rb
try_api-0.0.13 app/models/try_api/header.rb
try_api-0.0.12 app/models/try_api/header.rb
try_api-0.0.11 app/models/try_api/header.rb
try_api-0.0.10 app/models/try_api/header.rb
try_api-0.0.9 app/models/try_api/header.rb
try_api-0.0.8 app/models/try_api/header.rb
try_api-0.0.7 app/models/try_api/header.rb