class BitGirder::Http::HttpStatus

Attributes

code[R]
message[R]
version[R]

Public Class Methods

from_mingle_struct( ms ) click to toggle source
# File lib/bitgirder/http.rb, line 191
def self.from_mingle_struct( ms )

    self.new(
        :code => ms[ :code ].to_i,
        :message => ms[ :message ].to_s,
        :version => ms[ :version ].to_s
    )
end
new( opts = {} ) click to toggle source

Default constructor which takes a hash containing the following attributes:

:code
:message
:version
# File lib/doc-gen20.rb, line 137
def initialize( opts = {} )
    # Autogenerated stub for docs
end

Public Instance Methods

to_mingle_struct() click to toggle source
# File lib/bitgirder/http.rb, line 180
def to_mingle_struct
    MingleStruct.new(
        :type => :"bitgirder:http@v1/HttpStatus",
        :fields => {
            :code => @code,
            :message => @message,
            :version => @version
        }
    )
end