Class: Bskyrb::ComAtprotoRepoCreaterecord::CreateRecord::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.



4553
4554
4555
# File 'lib/bskyrb/generated_classes.rb', line 4553

def collection
  @collection
end

#recordObject

Returns the value of attribute record.



4559
4560
4561
# File 'lib/bskyrb/generated_classes.rb', line 4559

def record
  @record
end

#repoObject

Returns the value of attribute repo.



4551
4552
4553
# File 'lib/bskyrb/generated_classes.rb', line 4551

def repo
  @repo
end

#rkeyObject

Returns the value of attribute rkey.



4555
4556
4557
# File 'lib/bskyrb/generated_classes.rb', line 4555

def rkey
  @rkey
end

#swapCommitObject

Returns the value of attribute swapCommit.



4561
4562
4563
# File 'lib/bskyrb/generated_classes.rb', line 4561

def swapCommit
  @swapCommit
end

#validateObject

Returns the value of attribute validate.



4557
4558
4559
# File 'lib/bskyrb/generated_classes.rb', line 4557

def validate
  @validate
end

Class Method Details

.from_hash(hash) ⇒ Object



4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
# File 'lib/bskyrb/generated_classes.rb', line 4563

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(:swapCommit=, hash["swapCommit"])

  instance
end

Instance Method Details

#to_hObject



4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
# File 'lib/bskyrb/generated_classes.rb', line 4582

def to_h
  {

    "repo" => repo,

    "collection" => collection,

    "rkey" => rkey,

    "validate" => validate,

    "record" => record,

    "swapCommit" => swapCommit

  }
end