Class: Bskyrb::ComAtprotoSyncGetrepo::GetRepo::Input
- Inherits:
-
Object
- Object
- Bskyrb::ComAtprotoSyncGetrepo::GetRepo::Input
- Defined in:
- lib/bskyrb/generated_classes.rb
Instance Attribute Summary collapse
-
#did ⇒ Object
Returns the value of attribute did.
-
#earliest ⇒ Object
Returns the value of attribute earliest.
-
#latest ⇒ Object
Returns the value of attribute latest.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#did ⇒ Object
Returns the value of attribute did.
5938 5939 5940 |
# File 'lib/bskyrb/generated_classes.rb', line 5938 def did @did end |
#earliest ⇒ Object
Returns the value of attribute earliest.
5940 5941 5942 |
# File 'lib/bskyrb/generated_classes.rb', line 5940 def earliest @earliest end |
#latest ⇒ Object
Returns the value of attribute latest.
5942 5943 5944 |
# File 'lib/bskyrb/generated_classes.rb', line 5942 def latest @latest end |
Class Method Details
.from_hash(hash) ⇒ Object
5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 |
# File 'lib/bskyrb/generated_classes.rb', line 5944 def self.from_hash(hash) # httparty-returned string-keyed hash instance = new instance.send(:did=, hash["did"]) instance.send(:earliest=, hash["earliest"]) instance.send(:latest=, hash["latest"]) instance end |
Instance Method Details
#to_h ⇒ Object
5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 |
# File 'lib/bskyrb/generated_classes.rb', line 5957 def to_h { "did" => did, "earliest" => earliest, "latest" => latest } end |