Class: Bskyrb::ComAtprotoAdminSearchrepos::SearchRepos::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

#cursorObject

Returns the value of attribute cursor.



4081
4082
4083
# File 'lib/bskyrb/generated_classes.rb', line 4081

def cursor
  @cursor
end

#invitedByObject

Returns the value of attribute invitedBy.



4077
4078
4079
# File 'lib/bskyrb/generated_classes.rb', line 4077

def invitedBy
  @invitedBy
end

#limitObject

Returns the value of attribute limit.



4079
4080
4081
# File 'lib/bskyrb/generated_classes.rb', line 4079

def limit
  @limit
end

#termObject

Returns the value of attribute term.



4075
4076
4077
# File 'lib/bskyrb/generated_classes.rb', line 4075

def term
  @term
end

Class Method Details

.from_hash(hash) ⇒ Object



4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
# File 'lib/bskyrb/generated_classes.rb', line 4083

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

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

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

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

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

  instance
end

Instance Method Details

#to_hObject



4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
# File 'lib/bskyrb/generated_classes.rb', line 4098

def to_h
  {

    "term" => term,

    "invitedBy" => invitedBy,

    "limit" => limit,

    "cursor" => cursor

  }
end