Class: Bskyrb::ComAtprotoRepoApplywrites::ApplyWrites::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

#repoObject

Returns the value of attribute repo.



4508
4509
4510
# File 'lib/bskyrb/generated_classes.rb', line 4508

def repo
  @repo
end

#swapCommitObject

Returns the value of attribute swapCommit.



4514
4515
4516
# File 'lib/bskyrb/generated_classes.rb', line 4514

def swapCommit
  @swapCommit
end

#validateObject

Returns the value of attribute validate.



4510
4511
4512
# File 'lib/bskyrb/generated_classes.rb', line 4510

def validate
  @validate
end

#writesObject

Returns the value of attribute writes.



4512
4513
4514
# File 'lib/bskyrb/generated_classes.rb', line 4512

def writes
  @writes
end

Class Method Details

.from_hash(hash) ⇒ Object



4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
# File 'lib/bskyrb/generated_classes.rb', line 4516

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

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

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

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

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

  instance
end

Instance Method Details

#to_hObject



4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
# File 'lib/bskyrb/generated_classes.rb', line 4531

def to_h
  {

    "repo" => repo,

    "validate" => validate,

    "writes" => writes,

    "swapCommit" => swapCommit

  }
end