class Github::GitData::Blobs

If your data cannot be losslessly sent as a UTF-8 string, you can base64 encode it.
the blob api takes an encoding parameter that can be either utf-8 or base64.
Since blobs can be any arbitrary binary data, the input and responses for

def create(*args)


"encoding" => "utf-8"
"content" => "Content of the blob",
github.git_data.blobs.create 'user-name', 'repo-name',
github = Github.new
= Examples
* :encoding - String containing encodingutf-8 or base64
* :content - String of content
= Inputs

Create a blob
def create(*args)
  arguments(args, :required => [:user, :repo]) do
    sift VALID_BLOB_PARAM_NAMES
    assert_required VALID_BLOB_PARAM_NAMES
  end
  post_request("/repos/#{user}/#{repo}/git/blobs", arguments.params)
end

def get(*args)


github.git_data.blobs.get 'user-name', 'repo-name', 'sha'
github = Github.new
= Examples

Get a blob
def get(*args)
  arguments(args, :required => [:user, :repo, :sha])
  get_request("/repos/#{user}/#{repo}/git/blobs/#{sha}", arguments.params)
end