Class: Bskyrb::ComAtprotoRepoPutrecord::PutRecord::Input

Inherits:
Object
  • Object
show all
Defined in:
lib/bskyrb/generated_classes.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#collectionObject

Returns the value of attribute collection.



4918
4919
4920
# File 'lib/bskyrb/generated_classes.rb', line 4918

def collection
  @collection
end

#recordObject

Returns the value of attribute record.



4924
4925
4926
# File 'lib/bskyrb/generated_classes.rb', line 4924

def record
  @record
end

#repoObject

Returns the value of attribute repo.



4916
4917
4918
# File 'lib/bskyrb/generated_classes.rb', line 4916

def repo
  @repo
end

#rkeyObject

Returns the value of attribute rkey.



4920
4921
4922
# File 'lib/bskyrb/generated_classes.rb', line 4920

def rkey
  @rkey
end

#swapCommitObject

Returns the value of attribute swapCommit.



4928
4929
4930
# File 'lib/bskyrb/generated_classes.rb', line 4928

def swapCommit
  @swapCommit
end

#swapRecordObject

Returns the value of attribute swapRecord.



4926
4927
4928
# File 'lib/bskyrb/generated_classes.rb', line 4926

def swapRecord
  @swapRecord
end

#validateObject

Returns the value of attribute validate.



4922
4923
4924
# File 'lib/bskyrb/generated_classes.rb', line 4922

def validate
  @validate
end

Class Method Details

.from_hash(hash) ⇒ Object



4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
# File 'lib/bskyrb/generated_classes.rb', line 4930

def self.from_hash(hash)
  # httparty-returned string-keyed hash
  instance = new

  instance.send(:repo=, hash["repo"])

  instance.send(:collection=, hash["collection"])

  instance.send(:rkey=, hash["rkey"])

  instance.send(:validate=, hash["validate"])

  instance.send(:record=, hash["record"])

  instance.send(:swapRecord=, hash["swapRecord"])

  instance.send(:swapCommit=, hash["swapCommit"])

  instance
end

Instance Method Details

#to_hObject



4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
# File 'lib/bskyrb/generated_classes.rb', line 4951

def to_h
  {

    "repo" => repo,

    "collection" => collection,

    "rkey" => rkey,

    "validate" => validate,

    "record" => record,

    "swapRecord" => swapRecord,

    "swapCommit" => swapCommit

  }
end